Documentation ¶
Overview ¶
Package extos base tool
Package extos base tool
Index ¶
- func Executable() (dir, file string, err error)
- func FileCopy(src, dest string) error
- func FileModTime(file string) (int64, error)
- func FileMode(name string) (os.FileMode, error)
- func FileSize(file string) (int64, error)
- func Filepaths(root string) ([]string, error)
- func HasPermission(name string) bool
- func IsDir(filePath string) bool
- func IsExist(paths string) bool
- func IsFile(filePath string) bool
- func IsLinux() bool
- func IsMac() bool
- func IsMachineLittleEndian() bool
- func IsWindows() bool
- func WriteFile(filename string, data []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Executable ¶
Executable 和os.Executable() 一致,但是获取执行程序的所在路径和文件名
func FileModTime ¶
FileModTime returns file modified time and possible error.
func HasPermission ¶
HasPermission returns a boolean indicating whether that permission is allowed.
func IsDir ¶
IsDir returns true if given path is a dir, or returns false when it's a file or does not exist.
func IsExist ¶
IsExist checks whether a file or directory exists. It returns false when the file or directory does not exist.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.