-
Notifications
You must be signed in to change notification settings - Fork 29.6k
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
Path.format doesn't concat .name and .ext #6437
Comments
It works for me in v5.10.1 and v6.0.0. Looks like something may need to be backported? |
For some reason the docs were backported but the code wasn't. The PR that introduced that functionality is #2408. That PR has the So either something needs to be backported or the doc changes need to be reverted in the v4.x branch. |
Odd... the doc change may have been picked up along with some other doc updates and just overlooked. The right thing to do would be to revert the doc change in the v4.x. |
+1 on reverting doc change. Does anyone know the shas?
|
I have submitted a change to revert the docs. Thanks for reporting @eight04 |
Closing this issue as resolved with PR #6530 |
https://nodejs.org/docs/v4.4.3/api/path.html#path_path_format_pathobject
Under
path.format
, the document said that:However, This feature seems not working properly. With following code:
I always get:
The text was updated successfully, but these errors were encountered: