Proposal Details
Docs: https://pkg.go.dev/io/fs#WalkDirFunc and https://pkg.go.dev/path/filepath#WalkFunc
WalkDirFunc supports the return values SkipDir which skips traversing the current directory and the current directory's sub-directories.
SkipAll basically stops traversing the remaining files and directories.
Proposal:
Implement SkipDirFiles to skip traversing the current files in the current directory BUT NOT sub-directories.
Proposal Details
Docs: https://pkg.go.dev/io/fs#WalkDirFunc and https://pkg.go.dev/path/filepath#WalkFunc
WalkDirFunc supports the return values
SkipDirwhich skips traversing the current directory and the current directory's sub-directories.SkipAllbasically stops traversing the remaining files and directories.Proposal:
Implement
SkipDirFilesto skip traversing the current files in the current directory BUT NOT sub-directories.