Documentation
¶
Index ¶
- func CheckAndCreateDir(path string) error
- func CheckAndCreateDirByMode(path string, mode os.FileMode) error
- func CheckFileExists(filename string) (bool, error)
- func CheckFileExistsWithSuffix(pathDir, suffix string) bool
- func DirIsEmpty(dir string) bool
- func IsHaveFile(path string) bool
- func ReadFileOneLine(fileName string) string
- func RemoveFiles(path string) bool
- func SearchFile(pathDir, name string, level int) bool
- func SearchFileBody(filename, searchStr string) bool
- func WriteFile(filePath string, content string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckAndCreateDir ¶
CheckAndCreateDir check and create dir
func CheckAndCreateDirByMode ¶
CheckAndCreateDirByMode check and create dir
func CheckFileExists ¶
CheckFileExists check file exist
func CheckFileExistsWithSuffix ¶
CheckFileExistsWithSuffix 指定目录是否含有指定后缀的文件
func SearchFile ¶
SearchFile 搜索指定目录是否有指定文件,指定搜索目录层数,-1为全目录搜索
func SearchFileBody ¶
SearchFileBody 搜索文件中是否含有指定字符串
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.