GeezerVison is showing github.com — doc: add deprecation notice to `dirent.path` · nodejs/node@194ff6a
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: doc/api/fs.md +4Lines changed: 4 additions & 0 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -6454,8 +6454,11 @@ The path to the parent directory of the file this {fs.Dirent} object refers to. |
6454 | 6454 |
|
6455 | 6455 | <!-- YAML |
6456 | 6456 | added: v18.17.0 |
| 6457 | +deprecated: REPLACEME |
6457 | 6458 | --> |
6458 | 6459 |
|
| 6460 | +> Stability: 0 - Deprecated: Use [`dirent.parentPath`][] instead. |
| 6461 | +
|
6459 | 6462 | * {string} |
6460 | 6463 |
|
6461 | 6464 | The base path that this {fs.Dirent} object refers to. |
@@ -7995,6 +7998,7 @@ the file contents. |
7995 | 7998 | [`Number.MAX_SAFE_INTEGER`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/MAX_SAFE_INTEGER |
7996 | 7999 | [`ReadDirectoryChangesW`]: https://docs.microsoft.com/en-us/windows/desktop/api/winbase/nf-winbase-readdirectorychangesw |
7997 | 8000 | [`UV_THREADPOOL_SIZE`]: cli.md#uv_threadpool_sizesize |
| 8001 | +[`dirent.parentPath`]: #direntparentpath |
7998 | 8002 | [`event ports`]: https://illumos.org/man/port_create |
7999 | 8003 | [`filehandle.createReadStream()`]: #filehandlecreatereadstreamoptions |
8000 | 8004 | [`filehandle.createWriteStream()`]: #filehandlecreatewritestreamoptions |
|