Skip to content

Commit 99ac462

Browse files
committed
doc: add deprecation notice to dirent.path
Refs: nodejs#51020 PR-URL: nodejs#51059 Reviewed-By: Debadree Chatterjee <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Moshe Atlow <[email protected]>
1 parent ec5f84b commit 99ac462

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
@@ -6454,8 +6454,11 @@ The path to the parent directory of the file this {fs.Dirent} object refers to.
64546454
64556455
<!-- YAML
64566456
added: v18.17.0
6457+
deprecated: REPLACEME
64576458
-->
64586459
6460+
> Stability: 0 - Deprecated: Use [`dirent.parentPath`][] instead.
6461+
64596462
* {string}
64606463
64616464
The base path that this {fs.Dirent} object refers to.
@@ -7995,6 +7998,7 @@ the file contents.
79957998
[`Number.MAX_SAFE_INTEGER`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/MAX_SAFE_INTEGER
79967999
[`ReadDirectoryChangesW`]: https://docs.microsoft.com/en-us/windows/desktop/api/winbase/nf-winbase-readdirectorychangesw
79978000
[`UV_THREADPOOL_SIZE`]: cli.md#uv_threadpool_sizesize
8001+
[`dirent.parentPath`]: #direntparentpath
79988002
[`event ports`]: https://illumos.org/man/port_create
79998003
[`filehandle.createReadStream()`]: #filehandlecreatereadstreamoptions
80008004
[`filehandle.createWriteStream()`]: #filehandlecreatewritestreamoptions

0 commit comments

Comments
 (0)