Skip to content

Commit c45a9a3

Browse files
aduh95RafaelGSS
authored andcommitted
doc: add deprecation notice to dirent.path
Refs: #51020 PR-URL: #51059 Reviewed-By: Debadree Chatterjee <debadree333@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
1 parent c2b6edf commit c45a9a3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

doc/api/fs.md

+4
Original file line numberDiff line numberDiff line change
@@ -6633,8 +6633,11 @@ The path to the parent directory of the file this {fs.Dirent} object refers to.
66336633
added:
66346634
- v20.1.0
66356635
- v18.17.0
6636+
deprecated: REPLACEME
66366637
-->
66376638
6639+
> Stability: 0 - Deprecated: Use [`dirent.parentPath`][] instead.
6640+
66386641
* {string}
66396642
66406643
Alias for `dirent.parentPath`.
@@ -8190,6 +8193,7 @@ the file contents.
81908193
[`Number.MAX_SAFE_INTEGER`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/MAX_SAFE_INTEGER
81918194
[`ReadDirectoryChangesW`]: https://docs.microsoft.com/en-us/windows/desktop/api/winbase/nf-winbase-readdirectorychangesw
81928195
[`UV_THREADPOOL_SIZE`]: cli.md#uv_threadpool_sizesize
8196+
[`dirent.parentPath`]: #direntparentpath
81938197
[`event ports`]: https://illumos.org/man/port_create
81948198
[`filehandle.createReadStream()`]: #filehandlecreatereadstreamoptions
81958199
[`filehandle.createWriteStream()`]: #filehandlecreatewritestreamoptions

0 commit comments

Comments
 (0)