Documentation ¶
Index ¶
- Variables
- func EnsurePathExist(path string) (bool, error)
- func JoinPath(paths ...string) string
- func MakeDir(path string, existReturnError bool) (err error)
- func MakeDirIfNotPresent(path string) error
- func MakeDirs(path ...string) error
- func PathSplit(path string) (string, string)
- func Relative2Abs(relativePath string) (string, error)
- func RemovePath(path string, noExistReturnError bool) (bool, error)
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 路径
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.