File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -261,10 +261,13 @@ path.isAbsolute('.') // false
261261On Windows:
262262
263263``` js
264- path .isAbsolute (' //server' ) // true
265- path .isAbsolute (' C:/foo/..' ) // true
266- path .isAbsolute (' bar\\ baz' ) // false
267- path .isAbsolute (' .' ) // false
264+ path .isAbsolute (' //server' ) // true
265+ path .isAbsolute (' \\\\ server' ) // true
266+ path .isAbsolute (' C:/foo/..' ) // true
267+ path .isAbsolute (' C:\\ foo\\ ..' ) // true
268+ path .isAbsolute (' bar\\ baz' ) // false
269+ path .isAbsolute (' bar/baz' ) // false
270+ path .isAbsolute (' .' ) // false
268271```
269272
270273A [ ` TypeError ` ] [ ] is thrown if ` path ` is not a string.
@@ -509,6 +512,10 @@ added: v0.11.15
509512The ` path.win32 ` property provides access to Windows-specific implementations
510513of the ` path ` methods.
511514
515+ * Note* : On Windows, both the forward slash (` / ` ) and backward slash (` \ ` )
516+ characters are accepted as path delimiters; however, only the backward slash
517+ (` \ ` ) will be used in return values.
518+
512519[ `path.posix` ] : #path_path_posix
513520[ `path.win32` ] : #path_path_win32
514521[ `path.parse()` ] : #path_path_parse_path
You can’t perform that action at this time.
0 commit comments