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 interface{}) (cTime time.Time, aTime time.Time, mTime time.Time, err error)
- func IsDeleted(path string) bool
- func IsDir(path string) (bool, error)
- func LogicallyDelete(path string) error
- func OpenRWFile(name string) (*os.File, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClearDeletedFile ¶
ClearDeletedFile remove all of the deleted files in the path
func CreateFile ¶
CreateFile create a file without truncate
func GetFileTime ¶
GetFileTime get the create time, last access time, last modify time of the path
func GetFileTimeBySys ¶
func GetFileTimeBySys(sys interface{}) (cTime time.Time, aTime time.Time, mTime time.Time, err error)
GetFileTimeBySys get the create time, last access time, last modify time of the FileInfo.Sys()
func LogicallyDelete ¶
LogicallyDelete delete the path logically
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.