Documentation
¶
Index ¶
- func ResetFileInfoCache()
- type FileType
- type Info
- func (i *Info) Basic() os.FileInfo
- func (i *Info) Batch() (bool, int64, int64, uint32)
- func (i *Info) Error() error
- func (i *Info) Exist() bool
- func (i *Info) Key() string
- func (i *Info) Md5() (string, error)
- func (i *Info) Mode32() uint32
- func (i *Info) ModifyTime() int64
- func (i *Info) ModifyTime64() int64
- func (i *Info) Path() string
- func (i *Info) Size() int64
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ResetFileInfoCache ¶
func ResetFileInfoCache()
Types ¶
type Info ¶
Info describe the os.FileInfo and handle some actions
func GetFileInfo ¶
支持并发read,但会有重复Stat操作,考虑并发和去重的平衡
func GetFileInfoByEnumDir ¶
get file info by enum dir TODO : not ok for linux, do not call in linux
func (*Info) ModifyTime ¶
ModifyTime return the nano-second of this file's mod time
func (*Info) ModifyTime64 ¶
ModifyTime64 return the ModifyTime as int64
Click to show internal directories.
Click to hide internal directories.