File tree 2 files changed +14
-0
lines changed
2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -94,6 +94,12 @@ Error: EISDIR: illegal operation on a directory, read
94
94
<stack trace.>
95
95
```
96
96
97
+ * Note:* On Windows Node.js follows the concept of per-drive working directory.
98
+ This behavior can be observed when using a drive path without a backslash. For
99
+ example ` fs.readdirSync('c:\\') ` can potentially return a different result than
100
+ ` fs.readdirSync('c:') ` . For more information, see
101
+ [ this MSDN page] [ MSDN-Rel-Path ] .
102
+
97
103
## WHATWG URL object support
98
104
<!-- YAML
99
105
added: v7.6.0
@@ -2835,6 +2841,7 @@ The following constants are meant for use with the [`fs.Stats`][] object's
2835
2841
[ FS Constants ] : #fs_fs_constants_1
2836
2842
[ MDN-Date-getTime ] : https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/getTime
2837
2843
[ MDN-Date ] : https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date
2844
+ [ MSDN-Rel-Path ] : https://msdn.microsoft.com/en-us/library/windows/desktop/aa365247.aspx#fully_qualified_vs._relative_paths
2838
2845
[ Readable Stream ] : stream.html#stream_class_stream_readable
2839
2846
[ Writable Stream ] : stream.html#stream_class_stream_writable
2840
2847
[ inode ] : https://en.wikipedia.org/wiki/Inode
Original file line number Diff line number Diff line change @@ -54,6 +54,12 @@ path.posix.basename('/tmp/myfile.html');
54
54
// Returns: 'myfile.html'
55
55
```
56
56
57
+ * Note:* On Windows Node.js follows the concept of per-drive working directory.
58
+ This behavior can be observed when using a drive path without a backslash. For
59
+ example ` path.resolve('c:\\') ` can potentially return a different result than
60
+ ` path.resolve('c:') ` . For more information, see
61
+ [ this MSDN page] [ MSDN-Rel-Path ] .
62
+
57
63
## path.basename(path[ , ext] )
58
64
<!-- YAML
59
65
added: v0.1.25
@@ -550,3 +556,4 @@ of the `path` methods.
550
556
[ `path.posix` ] : #path_path_posix
551
557
[ `path.sep` ] : #path_path_sep
552
558
[ `path.win32` ] : #path_path_win32
559
+ [ MSDN-Rel-Path ] : https://msdn.microsoft.com/en-us/library/windows/desktop/aa365247.aspx#fully_qualified_vs._relative_paths
You can’t perform that action at this time.
0 commit comments