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

Map existing files for reading to MemFs #9

Open
theldoria opened this issue Jul 25, 2014 · 3 comments
Open

Map existing files for reading to MemFs #9

theldoria opened this issue Jul 25, 2014 · 3 comments

Comments

@theldoria
Copy link

It would be great if I could map existing files into MemFs virtual file system for reading:

MemFs.map("my_file", "my_other_file") # Map file "my_file", "my_other_file"
MemFs.map("my_files_directory") # Map directory "my_file_directory"
MemFs.map("my_files_directory" => "my_virtual_directory") # Map directory "my_file_directory" to "my_virtual_directory"
@simonc
Copy link
Owner

simonc commented Jul 25, 2014

That's a very good idea. Would you be able to propose an implementation for this? :)
When you say "map directory", do you mean mapping all files and sub-directories recursively?

@theldoria
Copy link
Author

Sure, I can prepare a pull request.

Regarding "map Directory": yes, mapping of directories is ment to be recursively.

@simonc
Copy link
Owner

simonc commented Jul 25, 2014

Awesome! :)
Keep me posted and ask anything if you need help ;)

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

No branches or pull requests

2 participants