Skip to content

Map actual directories in MockFileSystem #877

@m-gallesio

Description

@m-gallesio

Greetings.

Is there a way to make a part of a MockFileSystem point to an actual directory / file?
In our scenario we need to be able to read (not write) some actual files which are bundled with the application (mostly images and templates) while still mocking the rest.

A way I can think of is reading the target directory and mapping all of it manually when initialising the MockFileSystem, but I wonder if there is some built-in method / shortcut for this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions