Asynchronous rmdir(2). No arguments other than a possible exception are given to the completion callback.
rmdir(2)
Using fs.rmdir() on a file (not a directory) results in an ENOENT error on Windows and an ENOTDIR error on POSIX.
fs.rmdir()
ENOENT
ENOTDIR
To get a behavior similar to the rm -rf Unix command, use rm with options { recursive: true, force: true }.
rm -rf
{ recursive: true, force: true }
v0.0.2
Asynchronous
rmdir(2)
. No arguments other than a possible exception are given to the completion callback.Using
fs.rmdir()
on a file (not a directory) results in anENOENT
error on Windows and anENOTDIR
error on POSIX.To get a behavior similar to the
rm -rf
Unix command, use rm with options{ recursive: true, force: true }
.Since
v0.0.2