We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 58afe52 commit c0cf129Copy full SHA for c0cf129
doc/api/fs.md
@@ -2004,6 +2004,9 @@ changes:
2004
Asynchronous rmdir(2). No arguments other than a possible exception are given
2005
to the completion callback.
2006
2007
+*Note*: Using `fs.rmdir()` on a file (not a directory) results in an `ENOENT`
2008
+error on Windows and an `ENOTDIR` error on POSIX.
2009
+
2010
## fs.rmdirSync(path)
2011
<!-- YAML
2012
added: v0.1.21
@@ -2018,6 +2021,9 @@ changes:
2018
2021
2019
2022
Synchronous rmdir(2). Returns `undefined`.
2020
2023
2024
+*Note*: Using `fs.rmdirSync()` on a file (not a directory) results in an `ENOENT`
2025
2026
2027
## fs.stat(path, callback)
2028
2029
added: v0.0.2
0 commit comments