streamich / memfs

JavaScript file system utilities
http://streamich.github.io/memfs/
Apache License 2.0
1.73k stars 130 forks source link

Apply volume changes to some other fs/volume #650

Open make-github-pseudonymous-again opened 3 years ago

make-github-pseudonymous-again commented 3 years ago

Once a Volume has been created and fs operations have been applied to it, is there any standard way to apply all those fs operations to some other Volume or to the real fs? I have seen unionfs but this only allows you to create a view of a stack of file systems. What I would like to do is make this view real through real fs operations.

make-github-pseudonymous-again commented 3 years ago

PS: for my use case, I can instead copy the relevant part of the file system, modify the copy, then replace the original with the copy. I am just curious if this can be done through this library.