fs

package
v0.0.0-...-90deddd Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Usage

type Usage struct {
	// Total is the total number of bytes available on the disk.
	Total uint64

	// Free is the total number of bytes that are free on the disk.
	Free uint64

	// Avail is the total number of free bytes that are available to
	// unpriveliged users on the disk.
	Avail uint64
}

Usage specifies disk usage information.

func Stat

func Stat(path string) (Usage, error)

Stat queries and returns disk usage information for the disk at the given path.

Jump to

Keyboard shortcuts

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