Documentation
¶
Overview ¶
Package file 提供文件系统相关的工具函数, 包括文件 MD5 计算和路径存在性检查。
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FileMd5 ¶
FileMd5 计算指定文件的 MD5 哈希值
参数 filePath: 文件路径 返回值: 文件的 MD5 哈希值(大写字符串),如果文件不存在或读取失败则返回空字符串
func PathExists ¶
PathExists 检查指定路径是否存在 参数 path: 要检查的路径(文件或文件夹) 返回值: true表示存在,false表示不存在或不确定
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.