du

package module
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2017 License: Unlicense Imports: 2 Imported by: 6

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