mirror of https://github.com/nodejs/node.git
doc: simplify path.basename() on POSIX and Windows
PR-URL: https://github.com/nodejs/node/pull/23864 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>pull/23881/head
parent
1523111250
commit
16673ae9dc
|
@ -18,9 +18,7 @@ on which a Node.js application is running. Specifically, when running on a
|
|||
Windows operating system, the `path` module will assume that Windows-style
|
||||
paths are being used.
|
||||
|
||||
For example, using the `path.basename()` function with the Windows file path
|
||||
`C:\temp\myfile.html`, will yield different results when running on POSIX than
|
||||
when run on Windows:
|
||||
So using `path.basename()` might yield different results on POSIX and Windows:
|
||||
|
||||
On POSIX:
|
||||
|
||||
|
|
Loading…
Reference in New Issue