memfs icon indicating copy to clipboard operation
memfs copied to clipboard

Add a feature allowing base files creation

Open simonc opened this issue 12 years ago • 0 comments

Sometimes you need to have already existing directories and files for your tests. Being able to provide a base listing of it would be useful.

Two formats could be possible:

/test-dir/other-dir/file.rb         # would create the file and parent directories
/test-dir/other-dir2/               # would create the directory and its parent
...

Or

/test-dir/
  other-dir/
    file.rb
  other-dir2/

The first one is simpler and probably easier to read in the end.

simonc avatar Jun 30 '13 19:06 simonc