path

package
v1.4.3 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanPathContent added in v1.4.0

func CleanPathContent(dirPath string)

func CopyPath added in v1.4.0

func CopyPath(srcPath, dstPath string) error

CopyPath 深度复制目录结构及内容 特性: - 保留文件权限和修改时间 - 并行文件复制(最大4并发) - 自动创建目标目录 - 完善的错误处理链

func Exist

func Exist(path string) bool

Exist 路径是否存在

func IsDir added in v1.4.0

func IsDir(path string) bool

func IsDirEmpty added in v1.3.65

func IsDirEmpty(dirPath string) (bool, error)

IsDirEmpty 判断目录是否为空

func ListPath added in v1.4.0

func ListPath(filePath string, filterPattern string, recursive bool) ([]string, error)

ListPath 列出指定目录下的文件 filePath 路径 filterPattern 过滤规则 recursive 是否递归

func SplitParentDir added in v1.3.67

func SplitParentDir(dirPath string) string

func WalkPath

func WalkPath(filePath string) ([]string, error)

WalkPath 遍历指定目录

Types

This section is empty.

Jump to

Keyboard shortcuts

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