Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ByteCountDecimal ¶
ByteCountDecimal formats b as human-readable size (1000-based: kB, MB, …).
func DirSize ¶
DirSize returns the total size in bytes of all files under path. Uses filepath.WalkDir for fewer syscalls and better performance (Go 1.16+).
func DiskAvailable ¶
DiskAvailable returns the number of bytes available to the current user in the current working directory's filesystem. Unix-only.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.