fsutils

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2023 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StatResult

type StatResult struct {
	// contains filtered or unexported fields
}

func NewStatResult

func NewStatResult(rawStat *unix.Statfs_t) *StatResult

func Stat

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

Stat device contains the path

func StatCache

func StatCache(path string) (*StatResult, error)

StatCache stat device with cache

func (*StatResult) FreeSize

func (this *StatResult) FreeSize() uint64

func (*StatResult) TotalSize

func (this *StatResult) TotalSize() uint64

func (*StatResult) UsedSize

func (this *StatResult) UsedSize() uint64

Jump to

Keyboard shortcuts

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