Documentation ¶
Index ¶
- Variables
- func Exists(path string) (bool, error)
- func JoinPath(paths ...string) string
- func MakeDir(path string, existReturnError bool) (err error)
- func MakeDirIfNotPresent(path string) error
- func MkDirs(path ...string) error
- func Relative2Abs(relativePath string) (string, error)
- func RemovePath(path string, noExistReturnError bool) (bool, error)
- func Split(path string) (string, string)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidPath = errors.New("invalid path")
View Source
var ErrPathAlreadyExist = errors.New("path already exist")
View Source
var ErrPathNoExist = errors.New("path no exist")
Functions ¶
func MakeDirIfNotPresent ¶
MakeDirIfNotPresent 目录不存在, 则创建; 存在则不操作 path 路径.
func RemovePath ¶
RemovePath 完全删除文件夹或文件, 对于文件夹包括子文件以及子文件夹 path 路径 noExistReturnError 路径不存在时是否返回错误.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.