FS: Add /pkg/fs/duf to determine mount points and disk usage #4266

Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
Michael Mayer
2025-03-03 11:24:30 +01:00
parent 5c1b0ba96b
commit e1a9a68b29
23 changed files with 1983 additions and 11 deletions

View File

@@ -1,8 +1,8 @@
package fs
// KiloByte, MegaByte, and GigaByte size constants.
// Size constants for KByte, MByte, and GByte.
const (
KiloByte = 1024
MegaByte = KiloByte * 1024
GigaByte = MegaByte * 1024
KB = 1024
MB = KB * 1024
GB = MB * 1024
)