Skip to content

Rmdir

[<Interface>]
type Rmdir =
    abstract member Invoke (path: PathLike, options: RmDirOptions, callback: NoParamCallback) : unit
    abstract member Invoke (path: PathLike, callback: NoParamCallback) : unit
    abstract member __promisify__ (path: PathLike, ?options: RmDirOptions) : Promise<unit>
AssemblyXantham.Fable.Node

Methods

abstract member Invoke (path: PathLike, options: RmDirOptions, callback: NoParamCallback) : unit

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 rm with options { recursive: true, force: true }.

@since v0.0.2

abstract member Invoke (path: PathLike, callback: NoParamCallback) : unit

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 rm with options { recursive: true, force: true }.

@since v0.0.2

abstract member __promisify__ (path: PathLike, ?options: RmDirOptions) : Promise<unit>

Asynchronous rmdir(2) - delete a directory.

Parameter
pathA path to a file. If a URL is provided, it must use the file: protocol.