fs

package
Version: v1.22.2 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2021 License: Apache-2.0 Imports: 6 Imported by: 28

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.22.0

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

Source Files

Jump to

Keyboard shortcuts

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