webpack / memory-fs

[DEPRECATED use memfs instead] A simple in-memory filesystem. Holds data in a javascript object.
MIT License
881 stars 88 forks source link

writeFileSync does not accept empty content #57

Open DanielSWolf opened 6 years ago

DanielSWolf commented 6 years ago

I'm trying to create an empty file. So I'm calling fs.writeFileSync('/foo.txt', '');. However, this throws an exception with the message "No content".

I don't see any reason why it shouldn't be allowed to pass an empty string as file content.