diff --git a/doc/api/fs.md b/doc/api/fs.md index be9acd7dad7a35..17ff809f328bfb 100644 --- a/doc/api/fs.md +++ b/doc/api/fs.md @@ -6638,6 +6638,19 @@ The file name that this {fs.Dirent} object refers to. The type of this value is determined by the `options.encoding` passed to [`fs.readdir()`][] or [`fs.readdirSync()`][]. +#### `dirent.parentPath` + + + +> Stability: 1 – Experimental + +* {string} + +The path to the parent directory of the file this {fs.Dirent} object refers to. + #### `dirent.path`