File tree 1 file changed +11
-4
lines changed
1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -261,10 +261,13 @@ path.isAbsolute('.') // false
261
261
On Windows:
262
262
263
263
``` 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
268
271
```
269
272
270
273
A [ ` TypeError ` ] [ ] is thrown if ` path ` is not a string.
@@ -509,6 +512,10 @@ added: v0.11.15
509
512
The ` path.win32 ` property provides access to Windows-specific implementations
510
513
of the ` path ` methods.
511
514
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
+
512
519
[ `path.posix` ] : #path_path_posix
513
520
[ `path.win32` ] : #path_path_win32
514
521
[ `path.parse()` ] : #path_path_parse_path
You can’t perform that action at this time.
0 commit comments