Skip to content

✨ Stat for Files and Directorys #3764

Closed

Description

@davidwallacejackson

What are you trying to do?

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

  1. shykes commented on Nov 10, 2022

    @shykes
    Contributor

    I think @vito mentioned the plumbing is already in place.

  2. shykes commented on Mar 24, 2026

    @shykes
    Contributor

    Closing as completed — Stat functionality for Files and Directories has been shipped. Thanks for the suggestion!

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions