Documentation ¶
Index ¶
- func CreateDir(dirPath string, perms ...os.FileMode) error
- func Delete(path string, forces ...bool) error
- func GetAllPaths(dirPath string, exts ...string) (dirPaths []string, filePaths []string, err error)
- func GetContentType(ext string) string
- func GetFileType(fileName string) string
- func GetNames(dirPath string, exts ...string) (dirNames []string, fileNames []string, err error)
- func GetPaths(dirPath string, exts ...string) (dirPaths []string, filePaths []string, err error)
- func GetWorkDir() string
- func IsExist(path string) bool
- func Name(filePath string) string
- func NameNoExt(filePath string) string
- func ReadFile(filePath string) (string, error)
- func WriteFile(filePath string, body string, forces ...bool) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAllPaths ¶
获取所有文件和文件夹的路径,包含子文件夹下的文件和文件夹 @param ext 过滤文件,只获取匹配后缀名的文件,示例:.go
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.