Documentation
¶
Index ¶
- func CheckNotExist(src string) bool
- func CheckPermission(src string) bool
- func CreatePath(pathName string) (err error)
- func CreatePathInToday(pathName string) (pathInToday string, err error)
- func GetExt(fileName string) string
- func GetSize(f multipart.File) (int, error)
- func GetType(fileName string) (ftype string)
- func IsDir(path string) bool
- func IsNotExistMkDir(src string) error
- func MakeFileName(userid string, fileName string) (newFilename string)
- 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 PathExists(path string) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckPermission ¶
CheckPermission check if the file has permission
func CreatePath ¶
func CreatePathInToday ¶
func IsNotExistMkDir ¶
IsNotExistMkDir create a directory if it does not exist
func MakeFileName ¶
makefilename
func PathExists ¶
* 如果返回的错误为nil,说明文件或文件夹存在 如果返回的错误类型使用os.IsNotExist()判断为true,说明文件或文件夹不存在 如果返回的错误为其它类型,则不确定是否在存在
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.