Skip to content

Commit 21a29bf

Browse files
committed
document read-only
1 parent ef99b68 commit 21a29bf

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

doc/api/fs.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6657,11 +6657,17 @@ The path to the parent directory of the file this {fs.Dirent} object refers to.
66576657
added:
66586658
- v20.1.0
66596659
- v18.17.0
6660+
changes:
6661+
- version: REPLACEME
6662+
pr-url: https://github.com/nodejs/node/pull/51050
6663+
description: Accessing this property emits a warning. It is now read-only.
66606664
-->
66616665
6666+
> Stability: 0 - Deprecated: Use [`dirent.parentPath`][] instead.
6667+
66626668
* {string}
66636669
6664-
Alias for `dirent.parentPath`.
6670+
Alias for `dirent.parentPath`. Read-only.
66656671
66666672
### Class: `fs.FSWatcher`
66676673
@@ -8214,6 +8220,7 @@ the file contents.
82148220
[`Number.MAX_SAFE_INTEGER`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/MAX_SAFE_INTEGER
82158221
[`ReadDirectoryChangesW`]: https://docs.microsoft.com/en-us/windows/desktop/api/winbase/nf-winbase-readdirectorychangesw
82168222
[`UV_THREADPOOL_SIZE`]: cli.md#uv_threadpool_sizesize
8223+
[`dirent.parentPath`]: #direntparentpath
82178224
[`event ports`]: https://illumos.org/man/port_create
82188225
[`filehandle.createReadStream()`]: #filehandlecreatereadstreamoptions
82198226
[`filehandle.createWriteStream()`]: #filehandlecreatewritestreamoptions

0 commit comments

Comments
 (0)