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

Adds a createFolderMount util #6162

Closed
wants to merge 1 commit into from
Closed

Conversation

arcanis
Copy link
Member

@arcanis arcanis commented Mar 10, 2024

Note

This PR is stacked on top of #6161

What's the problem this PR addresses?

Creating a folder mount requires a bit of non-trivial boilerplate. Not that much code, but a little tricky to remember.

How did you fix it?

Added two functions:

  • applyFsLayer applies a FakeFS<PortablePath> on top of the fs module.
  • MountFS.createFolderMount returns a MountFS that replaces all access to folder X by accesses to folder Y.

Checklist

  • I have set the packages that need to be released for my changes to be effective.
  • I will check that all automated PR checks pass before the PR gets reviewed.

@arcanis
Copy link
Member Author

arcanis commented Mar 10, 2024

Bad branch, reopening

@arcanis arcanis closed this Mar 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant