You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Inspect the state of a filesystem to check for the existence of expected files or directories.
Why is this important to you?
When writing a build for a specific project, this is less important, since you'll have specific expectations around what the filesystem looks like. But when writing code that aims to be reusable between projects, it's helpful to be able to examine the filesystem you're working with so that you can choose between different behaviors or give consumers useful error messages when they pass in a filesystem you can't work with.
How are you currently working around this?
My workaround is to create a container with the filesystem I want to examine, then call stat inside the container.
Activity
shykes commentedon Nov 10, 2022
I think @vito mentioned the plumbing is already in place.
shykes commentedon Mar 24, 2026
Closing as completed —
Statfunctionality for Files and Directories has been shipped. Thanks for the suggestion!