Skip to content
This repository has been archived by the owner on Aug 15, 2024. It is now read-only.

pathToArray changing drive letter case for Windows #53

Open
marknadig opened this issue Jan 22, 2018 · 0 comments
Open

pathToArray changing drive letter case for Windows #53

marknadig opened this issue Jan 22, 2018 · 0 comments

Comments

@marknadig
Copy link

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant