fs

package
v1.22.0-beta.2 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2021 License: Apache-2.0 Imports: 5 Imported by: 68

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Info added in v1.21.0

func Info(path string) (int64, int64, int64, int64, int64, int64, error)

Info linux returns (available bytes, byte capacity, byte usage, total inodes, inodes free, inode usage, error) for the filesystem that path resides upon.

Types

type UsageInfo added in v1.21.8

type UsageInfo struct {
	Bytes  int64
	Inodes int64
}

func DiskUsage added in v1.11.0

func DiskUsage(path string) (UsageInfo, error)

DiskUsage calculates the number of inodes and disk usage for a given directory

Jump to

Keyboard shortcuts

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