proposal: io/fs: SkipFiles to skip current directory files but not subdirectories #72799
Labels
LibraryProposal
Issues describing a requested change to the Go standard library or x/ libraries, but not to a tool
Proposal
Milestone
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.The text was updated successfully, but these errors were encountered: