fs

package
v0.0.0-...-e38a99a Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClearDeletedFile

func ClearDeletedFile(clearPath string) error

ClearDeletedFile remove all of the deleted files in the path

func CreateFile

func CreateFile(name string) (*os.File, error)

CreateFile create a file without truncate

func FileExist

func FileExist(path string) (exist bool, err error)

FileExist is file Exist

func GetFileTime

func GetFileTime(path string) (cTime time.Time, aTime time.Time, mTime time.Time, err error)

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 IsDeleted

func IsDeleted(path string) bool

IsDeleted is deleted path

func IsDir

func IsDir(path string) (bool, error)

IsDir the path is directory or not

func LogicallyDelete

func LogicallyDelete(path string) error

LogicallyDelete delete the path logically

func OpenRWFile

func OpenRWFile(name string) (*os.File, error)

OpenRWFile open a file with read write mode

Types

This section is empty.

Jump to

Keyboard shortcuts

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