From 4f3bd623c21b7ed4062a9c663c4bf3c941c84cd3 Mon Sep 17 00:00:00 2001 From: sinkhaha <1468709106@qq.com> Date: Sat, 11 May 2024 22:03:51 +0800 Subject: [PATCH] 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 --- doc/api/fs.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/doc/api/fs.md b/doc/api/fs.md index a701af6123793e..7817774376f7e0 100644 --- a/doc/api/fs.md +++ b/doc/api/fs.md @@ -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)`