Documentation ¶
Index ¶
- func CheckPermission(src string) bool
- func DeLFile(filePath string) error
- func IsDirExist(path string) bool
- func IsExist(src string) bool
- func IsFileExist(path string) bool
- func MkDir(src string) error
- func MoveFile(src string, dst string) (err error)
- func Open(name string, flag int, perm os.FileMode) (*os.File, error)
- func OpenExistFile(fileName, filePath string) (*os.File, error)
- func Unzip(zipFile string, destDir string) ([]string, error)
- func VisitFile(root string, visitFile func(path string, f os.FileInfo, err error) error) error
- func WriteFile(filename string, content string) error
- func ZipFiles(filename string, files []string, oldForm, newForm string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MkDir ¶
IsNotExistMkDir 如果不存在则新建文件夹 `os.Mkdir` 用于创建一个目录。 `os.MkdirAll` 用于创建一个目录以及它的所有父目录(如果它们不存在的话)
func MoveFile ¶
@description: 文件移动供外部调用 @param: src string, dst string(src: 源位置,绝对路径or相对路径, dst: 目标位置,绝对路径or相对路径,必须为文件夹)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.