Skip to content

Constructing a memfs from an osfs. #57

@elldritch

Description

@elldritch

I have an interesting use case where I have some functions that run over a billy.Filesystem and I want to run them on a directory while ignoring a specific file. Ideally, I'd be able to do this without modifying the functions and without modifying the underlying filesystem. Instead, I want to construct a memfs from an osfs, and then delete the ignored file from the memfs so I can run the function on the memfs without needing to modify this.

Is this functionality difficult to implement? I couldn't find documentation on the best way to do this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions