GeezerVison is showing github.com — doc: use uppercase on windows path · nodejs/node@59a8dbe
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: doc/api/fs.md +2-2Lines changed: 2 additions & 2 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -152,8 +152,8 @@ fs.open(Buffer.from('/open/some/file.txt'), 'r', (err, fd) => { |
152 | 152 |
|
153 | 153 | On Windows, Node.js follows the concept of per-drive working directory. This |
154 | 154 | behavior can be observed when using a drive path without a backslash. For |
155 | | -example `fs.readdirSync('c:\\')` can potentially return a different result than |
156 | | -`fs.readdirSync('c:')`. For more information, see |
| 155 | +example `fs.readdirSync('C:\\')` can potentially return a different result than |
| 156 | +`fs.readdirSync('C:')`. For more information, see |
157 | 157 | [this MSDN page][MSDN-Rel-Path]. |
158 | 158 |
|
159 | 159 | ### URL object support |
|
Collapse file
Copy file name to clipboardExpand all lines: doc/api/path.md +2-2Lines changed: 2 additions & 2 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -56,8 +56,8 @@ path.posix.basename('/tmp/myfile.html'); |
56 | 56 |
|
57 | 57 | On Windows Node.js follows the concept of per-drive working directory. |
58 | 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 |
| 59 | +example, `path.resolve('C:\\')` can potentially return a different result than |
| 60 | +`path.resolve('C:')`. For more information, see |
61 | 61 | [this MSDN page][MSDN-Rel-Path]. |
62 | 62 |
|
63 | 63 | ## `path.basename(path[, ext])` |
|