-
-
Notifications
You must be signed in to change notification settings - Fork 31.7k
Use and return forward slash in Path sep even on Windows #1904
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I don't think it makes sense to change this. Using |
You can use the |
@mscdex It is not bad idea. In some cases it is really used everywhere in project - every npm module, so in that case would you advice to monkey patch require or there is better way? |
@Bobris Well, probably adding |
What would this make better that justifies potential ecosystem breakage? |
Closing, The ecosystem is already quite heavily built on this. :s |
Windows and DOS all the time supported both directory delimiters. Number of places in Windows where forward slashes are not allowed is very small and should be considered buggy.
Current situation makes writing platform independent code extremely complex, in many cases integration tests of projects created by Unix guys just don't work on Windows (and vice versa).
Finally this separation brings more harm then good.
It would also fix #616 - Path.relative would always return correct url separators.
I am not that naive, that I would expect this will be fixed, because it would probably break too many (probably mainly Windows) projects. But I would like to know view of node community about this problem.
The text was updated successfully, but these errors were encountered: