rmdir

Remove directory pathname.

  1. void rmdir(R pathname)
  2. void rmdir(R pathname)
    void
    rmdir
    (
    R
    )
    (
    auto ref R pathname
    )

Parameters

pathname R

Range or string specifying the directory name

Throws

FileException on error.

Examples

auto dir = deleteme ~ "dir";

dir.mkdir;
assert(dir.exists);
dir.rmdir;
assert(!dir.exists);

Meta