fsutil
packageThis package is not in the latest version of its module.
Details
Validgo.mod file
The Go module system was introduced in Go 1.11 and is the official dependency management solution for Go.
Redistributable license
Redistributable licenses place minimal restrictions on how software can be used, modified, and redistributed.
Tagged version
Modules with tagged versions give importers more predictable builds.
Stable version
When a project reaches major version v1 it is considered stable.
- Learn more about best practices
Repository
Links
Documentation¶
Index¶
- 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 IsDir(path string) (bool, error)
- func IsEOF(err error) bool
- func IsNonEOF(err error) bool
- func IsSub(parent, child string) (bool, error)
- func IsSymlink(path string) (bool, error)
- func IsSymlinkMode(mode fs.FileMode) bool
- func IsSymlinkSupported() bool
- func OpenRWFile(name string) (*os.File, error)
- func Readlink(name string) (string, error)
- func SafePath(path string) string
- func Symlink(oldname, newname string) error
- func SymlinkText(realPath string) string
- type GetFileTimeFunc
- type IsDirFunc
- type StatFunc
Constants¶
This section is empty.
Variables¶
This section is empty.
Functions¶
funcCreateFile¶
CreateFile create a file without truncate
funcGetFileTime¶
GetFileTime get the creation time, last access time, last modify time of the path
funcGetFileTimeBySys¶
GetFileTimeBySys get the creation time, last access time, last modify time of the FileInfo.Sys()
funcIsSymlinkMode¶
IsSymlinkMode check the mode is a symbolic link or not
funcIsSymlinkSupported¶
func IsSymlinkSupported()bool
IsSymlinkSupported checks if the system supports symbolic links
funcOpenRWFile¶
OpenRWFile open a file with read write mode
Types¶
typeGetFileTimeFunc¶
GetFileTimeFunc the function prototype of GetFileTime