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
This package doesn't fully work #5
Comments
Hmm, could you share a bit about the circumstances where this module doesn't work? What are you trying to accomplish? Which version of node.js? Can you share a piece of code that uses mountfs and does the wrong thing? |
It doesn't work on any version of node.js. I've tried to use it with memory-fs, but I always had an error with calling. My code was: const MemoryFileSystem = require("memory-fs");
const MountFS = require("mountfs");
module.exports = new MountFS(new MemoryFileSystem()); |
What I'm trying to do is run a mountable VFS with the ability to mount other node.js compatible file systems. |
@SpaceboyRoss01 You can't pass another fs implementation to the const MountFs = require("mountfs");
const mountFs = new MountFs();
mountFs.mount('/path/to/desired/mount/point', new MemoryFileSystem());
module.exports = mountFs; |
I've been trying to use this inside of Runtime.js, but it doesn't work. Here is the code I created that actually works.
The text was updated successfully, but these errors were encountered: