Function remove_dir_all::remove_dir_contents[][src]

pub fn remove_dir_contents<P: AsRef<Path>>(path: P) -> Result<()>

Deletes the contents of path, but not the directory iteself.

If path is a symlink to a directory, deletes the contents of that directory. Fails if path does not exist.