From 9d51d6607285aac7f0d760a4c4a37b775f41faaf Mon Sep 17 00:00:00 2001 From: coderaiser Date: Thu, 25 Apr 2019 17:56:57 +0300 Subject: [PATCH 1/2] docs: fs: stat.isDirectory: valid only for fs.stat and fs.fstat --- doc/api/fs.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/doc/api/fs.md b/doc/api/fs.md index 9969412dbdb48f..3498f83cf255b7 100644 --- a/doc/api/fs.md +++ b/doc/api/fs.md @@ -809,7 +809,11 @@ added: v0.1.10 Returns `true` if the `fs.Stats` object describes a file system directory. -### `stats.isFIFO()` +If the `fs.Stats` object was obtained from [`fs.lstat()`][], this method will +always return `false`. This is because [`fs.lstat()`][] returns information +about a symbolic link itself and not the path it resolves to. + +### stats.isFIFO() From 44e82fc572c1f50b2ba2384d9fda7d02a45e2f13 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Mon, 9 Nov 2020 12:39:31 +0200 Subject: [PATCH 2/2] Update doc/api/fs.md Co-authored-by: Antoine du Hamel --- doc/api/fs.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/fs.md b/doc/api/fs.md index 3498f83cf255b7..08041a58819311 100644 --- a/doc/api/fs.md +++ b/doc/api/fs.md @@ -813,7 +813,7 @@ If the `fs.Stats` object was obtained from [`fs.lstat()`][], this method will always return `false`. This is because [`fs.lstat()`][] returns information about a symbolic link itself and not the path it resolves to. -### stats.isFIFO() +### `stats.isFIFO()`