Documentation ¶
Index ¶
- Variables
- func ChtimesNow(name string) error
- func CopyFile(dst string, src string, flag int, perm os.FileMode) error
- func CreateAll(path string, perm os.FileMode) error
- func CreateAllIfNotExist(path string, perm os.FileMode) error
- func GetAbsBinDir() (dir string, err error)
- func PathExists(path string) (bool, error)
- func SameFile(fi1, fi2 string) bool
- func TouchAll(path string, perm os.FileMode) error
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func ChtimesNow ¶ added in v0.0.23
Chtimes changes the access and modification times of the named file with Now, similar to the Unix utime() or utimes() functions.
The underlying filesystem may truncate or round the values to a less precise time unit. If there is an error, it will be of type *PathError.
func CopyFile ¶ added in v0.0.104
CopyFile copies from src to dst. Overload os.CopyFile by file path
func CreateAll ¶ added in v0.0.23
CreateAll creates or truncates the named file or dir. If the file already exists, it is truncated. If the file does not exist, it is created with mode 0666 (before umask). If the dir does not exist, it is created with mode 0666 (before umask).
func CreateAllIfNotExist ¶ added in v0.0.23
CreateAllIfNotExist creates the named file or dir. If the file does not exist, it is created with mode 0666 (before umask). If the dir does not exist, it is created with mode 0666 (before umask). If path is already a directory, CreateAllIfNotExist does nothing and returns nil.
func GetAbsBinDir ¶
func PathExists ¶
func SameFile ¶ added in v0.0.104
SameFile reports whether fi1 and fi2 describe the same file. Overload os.SameFile by file path
Types ¶
This section is empty.