fs

package
v0.0.0-...-36737ed Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Info

type Info struct {
	Free      uint64
	Available uint64
	Size      uint64
	Used      uint64
	Usage     float64
}

Info holds the filesystem statistics. All the fields are in bytes, except for Usage which is a percentage.

func Stat

func Stat(path string) (*Info, error)

Stat returns the Info structure describing filesystem usage. If the path is empty, it uses the current working directory.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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