Skip to content

Commit 09ad974

Browse files
aduh95richardlau
authored andcommitted
doc: add deprecation notice to dirent.path
Refs: #51020 PR-URL: #51059 Reviewed-By: Debadree Chatterjee <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Moshe Atlow <[email protected]>
1 parent e39e37b commit 09ad974

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

doc/api/fs.md

+7-1
Original file line numberDiff line numberDiff line change
@@ -6594,9 +6594,14 @@ The path to the parent directory of the file this {fs.Dirent} object refers to.
65946594
#### `dirent.path`
65956595
65966596
<!-- YAML
6597-
added: v20.1.0
6597+
added:
6598+
- v20.1.0
6599+
- v18.17.0
6600+
deprecated: REPLACEME
65986601
-->
65996602
6603+
> Stability: 0 - Deprecated: Use [`dirent.parentPath`][] instead.
6604+
66006605
* {string}
66016606
66026607
Alias for `dirent.parentPath`.
@@ -8152,6 +8157,7 @@ the file contents.
81528157
[`Number.MAX_SAFE_INTEGER`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/MAX_SAFE_INTEGER
81538158
[`ReadDirectoryChangesW`]: https://docs.microsoft.com/en-us/windows/desktop/api/winbase/nf-winbase-readdirectorychangesw
81548159
[`UV_THREADPOOL_SIZE`]: cli.md#uv_threadpool_sizesize
8160+
[`dirent.parentPath`]: #direntparentpath
81558161
[`event ports`]: https://illumos.org/man/port_create
81568162
[`filehandle.createReadStream()`]: #filehandlecreatereadstreamoptions
81578163
[`filehandle.createWriteStream()`]: #filehandlecreatewritestreamoptions

0 commit comments

Comments
 (0)