Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileStat ¶ added in v1.1.0
type FileStat struct{}
func NewFileStat ¶ added in v1.1.0
func NewFileStat() *FileStat
type StatInfo ¶ added in v1.1.0
type StatInfo struct { Name string `csv:"name" json:"name" yaml:"name"` Device uint64 `csv:"device" json:"device" yaml:"device"` Mode os.FileMode `csv:"mode" json:"mode" yaml:"mode"` User string `csv:"user" json:"user" yaml:"user"` Group string `csv:"group" json:"group" yaml:"group"` Size int64 `csv:"size" json:"size" yaml:"size"` Atime time.Time `csv:"aTime" json:"aTime" yaml:"aTime"` Mtime time.Time `csv:"mTime" json:"mTime" yaml:"mTime"` Ctime time.Time `csv:"cTime" json:"cTime" yaml:"cTime"` Btime time.Time `csv:"bTime" json:"bTime" yaml:"bTime"` Blocks int64 `csv:"blocks" json:"blocks" yaml:"blocks"` BlockSize int32 `csv:"blockSize" json:"blockSize" yaml:"blockSize"` Flags uint32 `csv:"flags" json:"flags" yaml:"flags"` Metadata map[string]string `csv:"metadata,omitempty" json:"metadata,omitempty" yaml:"metadata,omitempty"` Error error `csv:"error,omitempty" json:"error,omitempty" yaml:"error,omitempty"` }
func (*StatInfo) Pretty ¶ added in v1.1.0
func (si *StatInfo) Pretty(dateLayout string) *StatInfoPretty
type StatInfoPretty ¶ added in v1.1.0
type StatInfoPretty struct { Name string `csv:"name" json:"name" yaml:"name"` Device uint64 `csv:"device" json:"device" yaml:"device"` Mode string `csv:"mode" json:"mode" yaml:"mode"` User string `csv:"user" json:"user" yaml:"user"` Group string `csv:"group" json:"group" yaml:"group"` Size int64 `csv:"size" json:"size" yaml:"size"` Atime string `csv:"aTime" json:"aTime" yaml:"aTime"` Mtime string `csv:"mTime" json:"mTime" yaml:"mTime"` Ctime string `csv:"cTime" json:"cTime" yaml:"cTime"` Btime string `csv:"bTime" json:"bTime" yaml:"bTime"` Blocks int64 `csv:"blocks" json:"blocks" yaml:"blocks"` BlockSize int32 `csv:"blockSize" json:"blockSize" yaml:"blockSize"` Flags uint32 `csv:"flags" json:"flags" yaml:"flags"` Metadata map[string]string `csv:"metadata,omitempty" json:"metadata,omitempty" yaml:"metadata,omitempty"` Error string `csv:"error" json:"error,omitempty" yaml:"error,omitempty"` }
Click to show internal directories.
Click to hide internal directories.