mirror of
https://github.com/nodejs/node.git
synced 2026-11-29 14:27:57 -05:00
doc: use uppercase on windows path
PR-URL: https://github.com/nodejs/node/pull/32294 Reviewed-By: Bartosz Sosnowski <bartosz@janeasystems.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net>
This commit is contained in:
1 parent
08c656bb7b
commit
cc8066e0d1
2 files changed
+4
-4
No files matched your search
+2
-2
@@ -152,8 +152,8 @@ fs.open(Buffer.from('/open/some/file.txt'), 'r', (err, fd) => {
|
||||
|
||||
On Windows, Node.js follows the concept of per-drive working directory. This
|
||||
behavior can be observed when using a drive path without a backslash. For
|
||||
example `fs.readdirSync('c:\\')` can potentially return a different result than
|
||||
`fs.readdirSync('c:')`. For more information, see
|
||||
example `fs.readdirSync('C:\\')` can potentially return a different result than
|
||||
`fs.readdirSync('C:')`. For more information, see
|
||||
[this MSDN page][MSDN-Rel-Path].
|
||||
|
||||
### URL object support
|
||||
|
||||
+2
-2
@@ -56,8 +56,8 @@ path.posix.basename('/tmp/myfile.html');
|
||||
|
||||
On Windows Node.js follows the concept of per-drive working directory.
|
||||
This behavior can be observed when using a drive path without a backslash. For
|
||||
example, `path.resolve('c:\\')` can potentially return a different result than
|
||||
`path.resolve('c:')`. For more information, see
|
||||
example, `path.resolve('C:\\')` can potentially return a different result than
|
||||
`path.resolve('C:')`. For more information, see
|
||||
[this MSDN page][MSDN-Rel-Path].
|
||||
|
||||
## `path.basename(path[, ext])`
|
||||
|
||||
Reference in new issue
Block a user