package
0.0.0-20241104015319-85e10345cc4a
Repository: https://github.com/qida/gohp.git
Documentation: pkg.go.dev
# Functions
Copy copies file from source to target path.
CopyDir copy files recursively from source to target directory.
*
* 拷贝文件夹,同时拷贝文件夹中的文件
* @param srcPath 需要拷贝的文件夹路径: D:/test
* @param destPath 拷贝到的位置: D:/backup/
*/.
生成目录并拷贝文件.
检测文件夹路径时候存在.
获取创建时间.
获取创建时间.
获取创建时间.
获取文件修改时间.
获取文件修改时间.
获取文件修改时间.
获取文件大小.
FileSizeHumane calculates the file size and generate user-friendly string.
获取文件大小带单位.
GetAllSubDirs returns all subdirectories of given root path.
获取文件名,后缀信息 req: "D:/software/Typora/bin/typora.exe" resp: typora.exe , .exe , typora.
GetFileListBySuffix returns an ordered list of file paths.
No description provided by the author
No description provided by the author
GetMP4Duration 获取视频时长,以秒计.
No description provided by the author
判断是否为目录.
目录或文件是否存在.
文件是否存在.
LgetAllSubDirs returns all subdirectories of given root path, including following symbolic links, if any.
LstatDir gathers information of given directory by depth-first.
把秒级的时间戳转为time格式.
StatDir gathers information of given directory by depth-first.
获取指定目录及所有子目录下的所有文件,可以匹配后缀过滤。.
WriteFile writes data to a file named by filename.