stat

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2017 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 FileStats

type FileStats struct {
	Size int64
	// RealSize is size that's occupied by file, including sparse
	RealSize int64
	// If ATime is not available for the platform, it will return 0
	ATime   int64
	ATimeNS int64

	// If CTime is not available for the platform, it will return MTime
	CTime   int64
	CTimeNS int64

	MTime   int64
	MTimeNS int64
}

FileStats provides various statistics about file, including Size, RealSize (blocks * 512b), ATime (if available), etc

func GetStat

func GetStat(i os.FileInfo) FileStats

Jump to

Keyboard shortcuts

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