We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2d6cbea commit 817bafbCopy full SHA for 817bafb
1 file changed
doc/api/fs.md
@@ -7291,6 +7291,11 @@ changes:
7291
* Type: {string}
7292
7293
The path to the parent directory of the file this {fs.Dirent} object refers to.
7294
+This value does not include `dirent.name`. For example, if
7295
+`fs.readdirSync('project', { withFileTypes: true, recursive: true })` returns
7296
+a {fs.Dirent} object for `project/src/index.js`, its `parentPath` is
7297
+`'project/src'` and its `name` is `'index.js'`. Use
7298
+`dirent.parentPath` and `dirent.name` together to build the full path.
7299
7300
### Class: `fs.FSWatcher`
7301
0 commit comments