stat

package
v1.10.1 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreationDate

func CreationDate(info os.FileInfo) time.Time

func Group

func Group(info os.FileInfo) (group *user.Group, err error)

func RawInfo added in v1.9.0

func RawInfo(name string) (file *os.File, stat os.FileInfo, abspath string, err error)

func Usr

func Usr(info os.FileInfo) (usr *user.User, err error)

func UsrAndGroup

func UsrAndGroup(info os.FileInfo) (usr *user.User, group *user.Group, err error)

Types

type File added in v1.9.0

type File struct {
	Size int64

	Name    string
	AbsPath string
	ModTime time.Time
	IsDir   bool
	Perms   fs.FileMode

	Group *user.Group
	User  *user.User

	CreationDate time.Time

	FilesNumber int64
	// contains filtered or unexported fields
}

func NewFile added in v1.9.0

func NewFile(path string) (f File, err error)

func (*File) Load added in v1.9.0

func (f *File) Load(path string) (err error)

Jump to

Keyboard shortcuts

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