Documentation ¶
Index ¶
- func ChangeFileName(path string, dstName string) (string, error)
- func Compress(pkgPath string, paths ...string) error
- func CreateFile(path string) (*os.File, error)
- func Decompress(srcPath, dstPath string) error
- func IsExists(path string) bool
- func IsPermission(path string) bool
- func Mkdir(path string) error
- func MustOpenFile(path string) (*os.File, error)
- func Remove(path string) error
- type FileOp
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChangeFileName ¶
ChangeFileName description 修改文件名
func CreateFile ¶
CreateFile @description 创建文件,先检查文件是否存在,存在就报错,不存在就创建
func Decompress ¶
Decompress @param srcPath 压缩包路径 @param dstPath 解压路径
func MustOpenFile ¶
MustOpenFile @description 直接打开文件,使用该方法的前提是确定文件一定存在
Types ¶
Click to show internal directories.
Click to hide internal directories.