Skip to content

Commit 194ff6a

Browse files
aduh95richardlau
authored andcommitted
doc: add deprecation notice to dirent.path
Refs: #51020 PR-URL: #51059 Backport-PR-URL: #51021 Reviewed-By: Debadree Chatterjee <debadree333@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Moshe Atlow <moshe@atlow.co.il> PR-URL: #50976
1 parent 0f09267 commit 194ff6a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

doc/api/fs.md

Lines changed: 4 additions & 0 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy