Function remove_dir_contents

Source
pub fn remove_dir_contents(dirname: &Path) -> Result<(), PathError>
Expand description

Removes all files in the directory, but not the directory itself.

The directory must exist, and there should be no sub directories.