Documentation ¶
Index ¶
- func Copy(source, des string) error
- func DelDir(path string) error
- func FileEmpty(path string) (bool, error)
- func FileMd5Equal(srcFile, desFile string) (bool, error)
- func GetBase() string
- func GetFileName(path string) string
- func Join(path, fileName string) string
- func Md5Sum(filePath string) (string, error)
- func MkFile(path string) error
- func MkdirAll(path string) error
- func PathStatus(path string) (exist, dir bool)
- func SubDirs(path string) (map[string]bool, error)
- func SubFiles(path string) ([]string, error)
- func Touch(configPath string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Copy ¶
Copy copy file content https://www.jb51.net/article/148552.htm
func FileEmpty ¶
FileEmpty Is the file content empty true: file content is empty false: file content is not empty
func FileMd5Equal ¶
FileMd5Equal Determine whether the contents of the two files are equal
func GetFileName ¶
GetFileName Get the file name under the specified path
func MkdirAll ¶
MkdirAll make all dir, if parent dir is not exist,mkdir parent dir. like: cmd mkdir -p
func PathStatus ¶
PathStatus path is exist and path is dir exist: true exist; false not exist dir: true is dir; false not
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.