Skip to content

proposal: io/fs: SkipFiles to skip current directory files but not subdirectories #72799

Description

@pjebs

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    LibraryProposalIssues describing a requested change to the Go standard library or x/ libraries, but not to a toolProposal

    Type

    No type

    Projects

    • Status
      Incoming

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions