memory-fs
memory-fs copied to clipboard
writeFileSync does not accept empty content
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.