-
-
Notifications
You must be signed in to change notification settings - Fork 139
Closed
Description
Hi,
I'm trying to use memfs as well as unionfs and linkfs with webpack replacing memory-fs.
So far, I had two issues, which are actually not directly related to memfs though.
- unionfs doesn't pass
mkdirp
, although memfs implements it.
webpack requiresmkdirp
and my workaround is to patch it:
ufs1.mkdirp = (...args) => ufs1.asyncMethod('mkdirp', args);
- when using with linkfs (node's
fs
behind it), unionfs fails with unsupportedmkdirp
, instead of calling back an exception which is an expected behavior.
it seems like a bug in https://github.com/streamich/unionfs/blob/5580150f2faf88276bff205b84ae70684823c30e/src/union.ts#L77
if (func) func.apply(fs, args);
or something like this helps my case.
I could try preparing a PR, but I'd leave it for now as you might have a better design choice.
Thanks for your great work!
Metadata
Metadata
Assignees
Labels
No labels