Documentation ¶ Index ¶ func CopyFile(src, dest string) error func CreateDir(p string) error func CreateDirRecursive(p string) func DeleteDir(p string) error func ListDir(p string) ([]fs.FileInfo, error) func ParentDirectory(p string) string func PathIsExist(p string) bool Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func CopyFile ¶ func CopyFile(src, dest string) error 文件复制 func CreateDir ¶ func CreateDir(p string) error 创建目录 func CreateDirRecursive ¶ func CreateDirRecursive(p string) 递归创建目录 不会产生异常 func DeleteDir ¶ func DeleteDir(p string) error 删除目录 func ListDir ¶ func ListDir(p string) ([]fs.FileInfo, error) 列出目录 func ParentDirectory ¶ func ParentDirectory(p string) string 获取父级目录 func PathIsExist ¶ func PathIsExist(p string) bool 路径不存在 Types ¶ This section is empty. Source Files ¶ View all Source files file.go Click to show internal directories. Click to hide internal directories.