[][src]Function fs_utils::remove::cleanup_folder

pub fn cleanup_folder<P: AsRef<Path>>(folder_path: P) -> Result<()>

Cleans up the contents (files and folders) of the given folder while keeping the folder itself.

It is useful if you don't want to loose the permissions set on the folder, or if you only have enough permissions to manipulate with the contents of the given folder, but not the folder itself.

It is a common pattern: