webpack / memory-fs

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

Allow writefile to be called with empty string #58

Open Janpot opened 6 years ago

Janpot commented 6 years ago

Fixes https://github.com/webpack/memory-fs/issues/57

This aligns memory-fs with native fs behavior when it comes to empty/missing arguments for writeFileSync

roberttod commented 6 years ago

@sokra I came across this issue today. Looks like a fairly straightforward fix, anything missing from this PR so that you could merge it?