mirror of
https://github.com/nodejs/node.git
synced 2025-08-15 21:58:48 +02:00
path: add path.sep to get the path separator.
This commit is contained in:
parent
6ba3e68bd2
commit
4bd54dad33
3 changed files with 26 additions and 0 deletions
|
@ -258,6 +258,7 @@ if (isWindows) {
|
|||
return outputParts.join('\\');
|
||||
};
|
||||
|
||||
exports.sep = '\\';
|
||||
|
||||
} else /* posix */ {
|
||||
|
||||
|
@ -373,6 +374,7 @@ if (isWindows) {
|
|||
return outputParts.join('/');
|
||||
};
|
||||
|
||||
exports.sep = '/';
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue