rmdir

Function rmdir 

Source
pub fn rmdir(path: &str) -> bool
Expand description

Removes an empty directory and returns a boolean based on success or failure.

This does not remove a directory recursively. Use fsutils::rm_r if you need recursive directory deletion.

ยงUsage:

use fsutils::rmdir;
fsutils::mkdir("testdir");
assert_eq!(rmdir("testdir"), true);