memory-fs icon indicating copy to clipboard operation
memory-fs copied to clipboard

writeFileSync does not accept empty content

Open DanielSWolf opened this issue 7 years ago • 0 comments

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.

DanielSWolf avatar Mar 20 '18 08:03 DanielSWolf