This commit is contained in:
Andrés N. Robalino
2019-08-06 21:45:38 -05:00
parent 1b7dd52713
commit c8b5329c5c
5 changed files with 125 additions and 6 deletions

View File

@@ -182,12 +182,11 @@ pub fn copy_file_to(source: &str, destination: &str) {
}
pub fn files_exist_at(files: Vec<&Path>, path: PathBuf) -> bool {
files.iter()
.all(|f| {
let mut loc = path.clone();
loc.push(f);
loc.exists()
})
files.iter().all(|f| {
let mut loc = path.clone();
loc.push(f);
loc.exists()
})
}
pub fn file_exists_at(path: PathBuf) -> bool {