du

package
v0.12.17 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 31, 2016 License: Unlicense, MPL-2.0 Imports: 2 Imported by: 0

README

du

Get total and available disk space on a given volume.

Documentation

http://godoc.org/github.com/calmh/du

License

Public Domain

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Usage

type Usage struct {
	TotalBytes int64 // Size of volume
	FreeBytes  int64 // Unused size
	AvailBytes int64 // Available to a non-privileged user
}

Usage holds information about total and available storage on a volume.

func Get

func Get(path string) (Usage, error)

Get returns the Usage of a given path, or an error if usage data is unavailable.

Directories

Path Synopsis
cmd
du

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL