Documentation
¶
Index ¶
- func ClearDeletedFile(clearPath string) error
- func CreateFile(name string) (*os.File, error)
- func FileExist(path string) (exist bool, err error)
- func GetFileTime(path string) (cTime time.Time, aTime time.Time, mTime time.Time, err error)
- func GetFileTimeBySys(sys any) (cTime time.Time, aTime time.Time, mTime time.Time, err error)
- func IsDeleted(path string) bool
- func IsDir(path string) (bool, error)
- func IsEOF(err error) bool
- func IsNonEOF(err error) bool
- func IsSub(parent, child string) (bool, error)
- func LogicallyDelete(path string) error
- func OpenRWFile(name string) (*os.File, error)
- func ToDeletedPath(path string) string
- type GetFileTimeFunc
- type IsDirFunc
- type StatFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClearDeletedFile ¶
ClearDeletedFile remove all the deleted files in the path
func CreateFile ¶
CreateFile create a file without truncate
func GetFileTime ¶
GetFileTime get the creation time, last access time, last modify time of the path
func GetFileTimeBySys ¶
GetFileTimeBySys get the creation time, last access time, last modify time of the FileInfo.Sys()
func LogicallyDelete ¶
LogicallyDelete delete the path logically
func OpenRWFile ¶
OpenRWFile open a file with read write mode
func ToDeletedPath ¶ added in v0.4.3
ToDeletedPath convert to the logically deleted file name
Types ¶
type GetFileTimeFunc ¶ added in v0.4.4
type GetFileTimeFunc func(path string) (cTime time.Time, aTime time.Time, mTime time.Time, err error)
GetFileTimeFunc the function prototype of GetFileTime
Click to show internal directories.
Click to hide internal directories.