pub fn exist_or_mkdir(path: &Path) -> Result<(), AppsMgmtError> {
        debug!("check and create path: {}", path.display());
        let _ = fs::remove_dir_all(path);
        fs::create_dir_all(path)?;
        Ok(())
    }
// Make sure the directory exists and empty.
Make sure the directory exists and empty.
Make sure the directory exists and empty .
pub fn exist_or_mkdir(path: &Path) -> Result<(), AppsMgmtError> {
        debug!("check and create path: {}", path.display());
        let _ = fs::remove_dir_all(path);
        fs::create_dir_all(path)?;
        Ok(())
    }
pub fn exist_or_mkdir ( path : & Path ) -> Result < ( ) , AppsMgmtError > { debug ! ( " " path display ( ) ) ; let _ = fs :: remove_dir_all ( path ) ; fs :: create_dir_all ( path ) ? ; Ok ( ( ) ) }
Make sure the directory exists and empty.
Make sure the directory exists and empty .
path
&Path
path
&Path