Open natebrennand opened 1 year ago
I'd consider it a bug that it ever allowed this in the first place. A file create on OsFs
would fail, it would be less surprising if MemFs
also had that behavior. We've had bugs slip by testing due to this difference, but I'm not sure we would have noticed that we need to turn strict mode on for MemFs
if it was an option like this.
I agree that it's a bug, but fixing it would be a breaking change. Dunno that a v2 is anywhere on the horizon
fixing it would be a breaking change.
Obligatory xkcd: https://xkcd.com/1172/
Workaround for https://github.com/spf13/afero/issues/373
Adds an option to have MemMapFS fail when creating a file in a directory that DNE.