Releases: aprosail/empty_inside_dir
Releases · aprosail/empty_inside_dir
v1.1.0
v1.0.0
Implement basic function: Empty the contents of a directory without deleting the directory itself.
use empty_inside_dir::empty_dir;
use std::path::Path;
fn main() -> Result<(), std::io::Error> {
let path = Path::new("./example_directory");
empty_dir(path)?;
Ok(())
}