package directory
import "github.com/containers/storage/pkg/directory"
Index ¶
- func MoveToSubdir(oldpath, subdir string) error
- func Size(dir string) (size int64, err error)
- type DiskUsage
Functions ¶
func MoveToSubdir ¶
MoveToSubdir moves all contents of a directory to a subdirectory underneath the original path
func Size ¶
Size walks a directory tree and returns its total size in bytes.
Types ¶
type DiskUsage ¶
DiskUsage is a structure that describes the disk usage (size and inode count) of a particular directory.
func Usage ¶
Usage walks a directory tree and returns its total size in bytes and the number of inodes.
Source Files ¶
directory.go directory_unix.go
- Version
- v1.59.0 (latest)
- Published
- Jul 14, 2025
- Platform
- linux/amd64
- Imports
- 5 packages
- Last checked
- 19 hours ago –
Tools for package owners.