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

pathToArray changing drive letter case for Windows

Open marknadig opened this issue 8 years ago • 0 comments

pathToArray() unnecessarily changes the drive letter case when not *nix path[0] = path[0].toUpperCase();.

This mutation causes a problem in tasks run from c:. For example, memory-fs-stream _read() will fail because root was "c:..." but they keys on this.fs.data had been changed by pathToArray to "C:"

I don't see a test asserting this behavior. I'm happy to submit a PR, but wanted to verify this behavior wasn't intentional/required.

marknadig avatar Jan 22 '18 17:01 marknadig