rmdir

external fun rmdir(path: PathLike, callback: NoParamCallback)(source)

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 an ENOENT error on Windows and an ENOTDIR error on POSIX.

To get a behavior similar to the rm -rf Unix command, use {@link rm} with options { recursive: true, force: true }.

Since

v0.0.2


external fun rmdir(path: PathLike, options: RmDirOptions, callback: NoParamCallback)(source)
suspend fun rmdir(path: PathLike, options: RmDirOptions = undefined.unsafeCast<Nothing>()): Void(source)