du: github.com/calmh/du Index | Files

package du

import "github.com/calmh/du"

Index

Package Files

diskusage.go diskusage_posix.go

type Usage Uses

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 Uses

func Get(path string) (Usage, error)

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

Package du imports 2 packages (graph) and is imported by 2 packages. Updated 2017-04-11. Refresh now. Tools for package owners.