-
-
Notifications
You must be signed in to change notification settings - Fork 35.4k
win, doc: document per-drive current working dir #13330
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -94,6 +94,12 @@ Error: EISDIR: illegal operation on a directory, read | |
| <stack trace.> | ||
| ``` | ||
|
|
||
| *Note:* On Windows Node follows the concept of per-drive working directory. | ||
| This behavior can be observed when using a drive path without backslash, e.g. | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nit: |
||
| `fs.readdirSync('c:\\')` can potentially return different result than | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
| `fs.readdirSync('c:')`. For more information see | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
| [this MSDN page][MSDN-Rel-Path]. | ||
|
|
||
| ## WHATWG URL object support | ||
| <!-- YAML | ||
| added: v7.6.0 | ||
|
|
@@ -2835,6 +2841,7 @@ The following constants are meant for use with the [`fs.Stats`][] object's | |
| [FS Constants]: #fs_fs_constants_1 | ||
| [MDN-Date-getTime]: https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/getTime | ||
| [MDN-Date]: https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date | ||
| [MSDN-Rel-Path]: https://msdn.microsoft.com/en-us/library/windows/desktop/aa365247.aspx#fully_qualified_vs._relative_paths | ||
| [Readable Stream]: stream.html#stream_class_stream_readable | ||
| [Writable Stream]: stream.html#stream_class_stream_writable | ||
| [inode]: https://en.wikipedia.org/wiki/Inode | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -54,6 +54,11 @@ path.posix.basename('/tmp/myfile.html'); | |
| // Returns: 'myfile.html' | ||
| ``` | ||
|
|
||
| *Note:* On Windows Node follows the concept of per-drive working directory. | ||
| This behavior can be observed when using a drive path without backslash, e.g. | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. without backslash -> without a backslash |
||
| `path.resolve('c:\\')` can potentially return different result than | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. return different -> return a different |
||
| `path.resolve('c:')`. For more information see [this MSDN page][MSDN-Rel-Path]. | ||
|
|
||
| ## path.basename(path[, ext]) | ||
| <!-- YAML | ||
| added: v0.1.25 | ||
|
|
@@ -550,3 +555,4 @@ of the `path` methods. | |
| [`path.posix`]: #path_path_posix | ||
| [`path.sep`]: #path_path_sep | ||
| [`path.win32`]: #path_path_win32 | ||
| [MSDN-Rel-Path]: https://msdn.microsoft.com/en-us/library/windows/desktop/aa365247.aspx#fully_qualified_vs._relative_paths | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be
Node.jsalthough it's probably enough to just sayWindows follows...as Node.js is not doing anything different from the OS behavior.