Skip to content

feat(webdav):add storage usage #8360

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Eternal-Future
Copy link

给Alist的webdav添加了使用容量查看
效果如下(RaiDrive和Rclone)

在Alist管理面板定义好全局存储容量(GB)以及扫描间隔时间(秒)

此功能依赖于索引
是计算索引里的所有文件来得知已占用多少空间
所以缺点是如果索引的文件不全会显示不准确

如果实际占用情况大于全局存储容量的话 webdav会显示0字节可用

@xhofe xhofe requested a review from Copilot April 13, 2025 05:02
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 10 out of 10 changed files in this pull request and generated no comments.

Comments suppressed due to low confidence (1)

server/webdav/prop.go:513

  • Avoid using a hard-coded magic number. Consider using a named constant (e.g., math.MaxInt64) to improve clarity and maintainability.
return "9223372036854775807", nil // maxInt64

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant