We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 226ef71 commit 1d5ba9cCopy full SHA for 1d5ba9c
doc/api/fs.md
@@ -1546,6 +1546,9 @@ added: v0.0.2
1546
Asynchronous rmdir(2). No arguments other than a possible exception are given
1547
to the completion callback.
1548
1549
+*Note*: Using `fs.rmdir()` on a file (not a directory) results in an `ENOENT`
1550
+error on Windows and an `ENOTDIR` error on POSIX.
1551
+
1552
## fs.rmdirSync(path)
1553
<!-- YAML
1554
added: v0.1.21
@@ -1555,6 +1558,9 @@ added: v0.1.21
1555
1558
1556
1559
Synchronous rmdir(2). Returns `undefined`.
1557
1560
1561
+*Note*: Using `fs.rmdirSync()` on a file (not a directory) results in an `ENOENT`
1562
1563
1564
## fs.stat(path, callback)
1565
1566
added: v0.0.2
0 commit comments