fs

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DoListDir

func DoListDir(dirPth string, suffix string, f func(fileName string) error) error

获取指定目录下的所有文件,不进入下一级目录搜索,可以匹配后缀过滤。

func DoListDirEx

func DoListDirEx(dirPth string, suffix string, f func(fullpath string, fileName string) error) error

获取指定目录下的所有文件,不进入下一级目录搜索,可以匹配后缀过滤。

func DoWalkDir

func DoWalkDir(dirPth, suffix string, f func(fileName string, isdir bool) error) error
func IsSymLink(m os.FileMode) bool

func ListDir

func ListDir(dirPth string, suffix string, ch chan<- string) error

获取指定目录下的所有文件,不进入下一级目录搜索,可以匹配后缀过滤。

func PathExists

func PathExists(filename string) bool

func PathExists2

func PathExists2(filename string) (bool, error)

func WalkDir

func WalkDir(dirPth, suffix string, ch chan<- string) error

获取指定目录及所有子目录下的所有文件,可以匹配后缀过滤。

Types

This section is empty.

Jump to

Keyboard shortcuts

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