Documentation ¶
Index ¶
- func CheckPermission(src string) bool
- func CopyDir(source string, dest string) (err error)
- func CopyFile(source string, dest string) (err error)
- func ExtIsImg(extension string) bool
- func GetAllFile(pathname string, allowExt []string) (res []string, err error)
- func GetAppCurrentPath() (string, error)
- func GetExt(fileName string) string
- func GetFileSize(path string) int64
- func IsDir(path string) bool
- func IsExist(path string) bool
- func IsNotExistMkDir(src string) error
- func MkDir(src string) error
- func MustOpen(fileName, filePath string) (*os.File, error)
- func Open(name string, flag int, perm os.FileMode) (*os.File, error)
- func ReadFile(fileName string) (string, error)
- func WriteFile(b []byte, file string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAllFile ¶ added in v2.1.8
获取文件夹中符合拓展名的文件
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.