Skip to content

io/fs: no examples for how to use it with the operating system #46083

@FiloSottile

Description

@FiloSottile

I needed to walk a directory, so I pulled up the io/fs.WalkDir docs, but there was nothing telling me how to get an FS instance for the operating system's filesystem. The only mention of os.DirFS is in fs.Sub, and I only found it because I had a hunch to search os..

Metadata

Metadata

Assignees

No one assigned

    Labels

    DocumentationIssues describing a change to documentation.FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.help wanted

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions