From 77d54fe4545abd1a20ba21a9d8e3798501753bad Mon Sep 17 00:00:00 2001 From: sinkhaha <1468709106@qq.com> Date: Thu, 25 May 2023 16:58:19 +0800 Subject: [PATCH 1/3] doc: update fs.realpath documentation --- doc/api/fs.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/doc/api/fs.md b/doc/api/fs.md index e95865db7fb200..2a9d086300d04f 100644 --- a/doc/api/fs.md +++ b/doc/api/fs.md @@ -3892,6 +3892,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. +If a path that does not exist is used, it will result in an ENOENT error, +the `error.path` will be the absolute path of the path parameter. + ### `fs.realpath.native(path[, options], callback)`