-
Notifications
You must be signed in to change notification settings - Fork 7.3k
Why normalize drive letter to lower case? #7880
Comments
When you use |
Maybe, because the module cache issue under Windows. |
As far as I remember, because of the cache, as @JacksonTian said. |
what's the "module cache issue"? could u give some more information? |
@fouber If you It works where the paths to the two modules are equal, though there are problems with that on Windows. When paths are somehow not equal (see #6829 for example), you get a clone. It means that you loose some time when the module is parsed by the engine once again, and then a change in internal state of one of these modules does not affect the other, which is inconvenient. |
thx very much! |
This broke every unit test I have that compares a file path from an API method with, say, Please consider reopening this as a bug. |
from v0.11.x,
path.normalize
will normalize drive letter to lower case:https://github.com/joyent/node/blob/v0.11.0-release/lib/path.js#L179-L182
why?
The text was updated successfully, but these errors were encountered: