Skip to main content

make_dir_empty

Function make_dir_empty 

Source
pub fn make_dir_empty(path: impl AsRef<Path>) -> Result<()>
Available on crate feature fs only.
Expand description

Ensure path exists and is an empty directory.

If path does not exist, it will be created. Current contents in path will be removed.