doc: update fs.realpath documentation

PR-URL: https://github.com/nodejs/node/pull/48170
Fixes: https://github.com/nodejs/node/issues/45067
Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
sinkhaha 2024-05-11 22:03:51 +08:00 committed by GitHub
parent 05a941f3f2
commit c4d0229486
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -4115,6 +4115,9 @@ the path returned will be passed as a {Buffer} object.
If `path` resolves to a socket or a pipe, the function will return a system
dependent name for that object.
A path that does not exist results in an ENOENT error.
`error.path` is the absolute file path.
### `fs.realpath.native(path[, options], callback)`
<!-- YAML