package
0.7.7
Repository: https://github.com/ergoapi/util.git
Documentation: pkg.go.dev

# Functions

CheckFileExists check file exist.
CheckFileExistsWithSuffix 指定目录是否含有指定后缀的文件.
Copy copies a file to a destination path.
CountDirFiles return count files under a directory.
DirFilesList 获取目录下的文件列表.
DirIsEmpty 验证目录是否为空.
GetTempDir 返回用于临时文件的目录.
IsDir 是否为目录.
IsHaveFile 指定目录是否含有文件 .开头文件除外.
IsRecursiveSymlink checks if the provided non-resolved file info is a recursive symlink.
LineReadFile opens name and calls fn for each line.
LineReadReader calls fn for each line.
Md5file 计算文件md5.
Md5FromLocal local md5.
No description provided by the author
No description provided by the author
MkFileFullPathDir file ./test/dir/xxx.txt if dir ./test/dir not exist, create it.
No description provided by the author
No description provided by the author
ReadAll read file content.
ReadDir reads the directory named by dirname and returns.
ReadFile reads a file with a given limit.
ReadFileOneLine 读取文件一行.
No description provided by the author
RealPath get an absolute path.
RemoveFiles 删除文件.
Rmdir support to keep the current directory.
SearchFile 搜索指定目录是否有指定文件,指定搜索目录层数,-1为全目录搜索.
SearchFileBody 搜索文件中是否含有指定字符串.
Size file size.
Size2Str file size.
WorkDirPath program directory path.
WriteFile 写文件.
WriteFileWithLine 换行.
WriteToFile 写文件.

# Variables

FilePath filepath.