Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
FiloSottile opened this issue May 10, 2021 · 2 comments
Closed

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

FiloSottile opened this issue May 10, 2021 · 2 comments
Labels
Documentation FrozenDueToAge help wanted NeedsFix The path to resolution is known, but the work has not been done.

Comments

@FiloSottile
Copy link
Contributor

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..

@FiloSottile FiloSottile added Documentation help wanted NeedsFix The path to resolution is known, but the work has not been done. labels May 10, 2021
@adammitha
Copy link
Contributor

Hi Filippo! I ran into this issue as well - are you still looking for help developing an example for this use case?

@gopherbot
Copy link

Change https://golang.org/cl/319989 mentions this issue: io/fs: added an example for io/fs.WalkDir

@golang golang locked and limited conversation to collaborators May 21, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Documentation FrozenDueToAge help wanted NeedsFix The path to resolution is known, but the work has not been done.
Projects
None yet
Development

No branches or pull requests

3 participants