Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

path: allow calling platform specific methods #5661

Closed
wants to merge 1 commit into from

Conversation

tjfontaine
Copy link

Add path.posix and path.win32 which have the specific methods like
resolve and normalize so you can specifically normalize or resolve
based on the target platform.

@isaacs
Copy link

isaacs commented Jun 11, 2013

Seems like _makeLong should be hung on either the win32 or posix objects, not necessarily module.exports

Add path.posix and path.win32 which have the specific methods like
resolve and normalize so you can specifically normalize or resolve
based on the target platform.
// This path points to another device so it is not applicable
continue;
}
var normalizeUNCRoot = function(device) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

function normalizeUNCRoot(device) { ?

EDIT: Oh, Trevor already pointed that out.

@mscdex
Copy link

mscdex commented Apr 7, 2014

+1 Any update on this?

@tjfontaine
Copy link
Author

I'm going to rebase and land before wednesday

@misterdjules misterdjules added this to the 0.11.15 milestone Nov 5, 2014
@misterdjules misterdjules self-assigned this Nov 5, 2014
@misterdjules
Copy link

@tjfontaine Rebased your work on top of v0.12 here: https://github.com/misterdjules/node/commits/path-platform. Tests pass on OS X, Windows, Linux and SmartOS.

@chrisdickinson
Copy link

This is now included in #8750.

tjfontaine added a commit that referenced this pull request Nov 21, 2014
Add path.posix and path.win32 which have the specific methods like
resolve and normalize so you can specifically normalize or resolve
based on the target platform.

PR-URL: #5661
Reviewed-by: Chris Dickinson <christopher.s.dickinson@gmail.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants