mirror of
https://github.com/nushell/nushell.git
synced 2025-08-18 09:19:53 +02:00
Migrate mv
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user