Documentation ¶
Index ¶
- func Exist(path string) (exist bool, isFolder bool)
- func MatchFilter(filter []string, s string) bool
- func MatchString(pattern string, s string) bool
- func Mkdir(path string) error
- func MkdirAll(path string) error
- func Stat(path string) (os.FileInfo, error)
- func WalkAll(path string, listPointer any, subFolder bool) error
- func WildcardToRegex(wildcard string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WalkAll ¶
WalkAll 递归将指定路径下所有文件加入列表(链表或者切片) path为指定的文件路径字符串,listPointer为加入列表的指针,subFolder为是否要递归下级目录的布尔值
func WildcardToRegex ¶
WildcardToRegex 通配符 * ? 转换为正则表达式
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.