mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 10:59:27 +00:00
doc: explain path.format expected properties
Explain the expected properties in path.format Fixes: https://github.com/nodejs/node/issues/5746 PR-URL: https://github.com/nodejs/node/pull/5801 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
This commit is contained in:
parent
e301f979de
commit
d16d9047ea
@ -88,9 +88,9 @@ path.extname('.index')
|
||||
|
||||
Returns a path string from an object. This is the opposite of [`path.parse`][].
|
||||
|
||||
If `pathObject` has all expected properties, the returned string will be a
|
||||
concatenation of the `dir` property, the platform-dependent path separator, and
|
||||
the `base` property.
|
||||
If `pathObject` has `dir` and `base` properties, the returned string will
|
||||
be a concatenation of the `dir` property, the platform-dependent path separator,
|
||||
and the `base` property.
|
||||
|
||||
If the `dir` property is not supplied, the `root` property will be used as the
|
||||
`dir` property. However, it will be assumed that the `root` property already
|
||||
|
Loading…
Reference in New Issue
Block a user