gPath

package
v1.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 13, 2023 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Exist

func Exist(path string) (exist bool, isFolder bool)

Exist Check if path string exist? and is a folder?

func MatchFilter

func MatchFilter(filter []string, s string) bool

MatchFilter 过滤表匹配字符串

func MatchString

func MatchString(pattern string, s string) bool

MatchString 字符串匹配字符串

func Mkdir

func Mkdir(path string) error

Mkdir Create path

func MkdirAll

func MkdirAll(path string) error

MkdirAll Create all path

func Stat

func Stat(path string) (os.FileInfo, error)

Stat Check if path string stats

func WalkAll

func WalkAll(path string, listPointer any, subFolder bool) error

WalkAll 递归将指定路径下所有文件加入列表(链表或者切片) path为指定的文件路径字符串,listPointer为加入列表的指针,subFolder为是否要递归下级目录的布尔值

func WildcardToRegex

func WildcardToRegex(wildcard string) string

WildcardToRegex 通配符 * ? 转换为正则表达式

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL