Migrate mv

This commit is contained in:
Yehuda Katz
2019-08-28 10:28:58 -07:00
parent 21ad06b1e1
commit 2c65b2fc2f
2 changed files with 113 additions and 120 deletions

View File

@@ -345,7 +345,7 @@ pub fn copy_file_to(source: &str, destination: &str) {
std::fs::copy(source, destination).expect("can not copy file");
}
pub fn files_exist_at(files: Vec<&Path>, path: impl AsRef<Path>) -> bool {
pub fn files_exist_at(files: Vec<impl AsRef<Path>>, path: impl AsRef<Path>) -> bool {
files.iter().all(|f| {
let mut loc = PathBuf::from(path.as_ref());
loc.push(f);