memfs icon indicating copy to clipboard operation
memfs copied to clipboard

Is it possible to virualize only specific directory

Open purepear opened this issue 6 years ago • 3 comments
trafficstars

I'm using Jest and fs-extra :)

I want to be able to mock certain absolute directory/directories with memfs... and leave everything else to the default "fs" module

Is this possible at all? (This means writing and reading files)

I saw unionfs but from the examples given(only reading files)... i'm not sure how to accomplish this with writing files as well.

purepear avatar Mar 18 '19 11:03 purepear

Hi! I encountered the same problem, were you able to solve it?

alexandrsek avatar Jun 04 '22 12:06 alexandrsek

Hi @alexandrsek. Sorry, this was an old project and unfortunately i can't really remember.

purepear avatar Jun 04 '22 12:06 purepear

Sad, thank you for your reply and good luck

alexandrsek avatar Jun 08 '22 14:06 alexandrsek

unionfs is what you want to use - I do this often in my projects.

G-Rath avatar Nov 03 '22 19:11 G-Rath