file

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsDir

func IsDir(name string) bool

* * @Description: 检查指定路径是否为文件夹 * @param: name * @return: bool * @Author: Iori * @Date: 2022-06-10 18:04:21 *

func ListAllFile

func ListAllFile(dir, suffix string) (files []string, err error)

* * @Description: 获取指定路径下的所有文件,只搜索当前路径,不进入下一级目录,可匹配后缀过滤(suffix为空则不过滤) * @param: dir * @param: suffix * @return: files * @return: err * @Author: Iori * @Date: 2022-06-10 18:04:58 *

func ListDir

func ListDir(dir string) (files []string, err error)

* * @Description: 获取指定路径下的所有子目录 * @param: dir * @return: files * @return: err * @Author: Iori * @Date: 2022-06-13 15:11:07 *

func MatchRemoveAll

func MatchRemoveAll(srcDir, dstDir string) error

* * @Description: 删除所有的匹配文件 * @param: srcDir * @param: dstDir * @return: error * @Author: Iori * @Date: 2022-06-13 15:27:43 *

Types

This section is empty.

Jump to

Keyboard shortcuts

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