This commit is contained in:
sxyazi 2024-01-02 01:49:58 +08:00
parent 19ebbd3df3
commit 4ddecbb6ee
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View file

@ -22,7 +22,7 @@ impl Manager {
if cut {
tasks.file_cut(src, dest, opt.force);
} else {
tasks.file_copy(src, dest, opt.force);
tasks.file_copy(src, dest, opt.force, opt.follow);
}
}
}

View file

@ -88,7 +88,7 @@ impl Tasks {
}
}
pub fn file_copy(&self, src: &HashSet<Url>, dest: &Url, force: bool) {
pub fn file_copy(&self, src: &HashSet<Url>, dest: &Url, force: bool, follow: bool) {
for u in src {
let to = dest.join(u.file_name().unwrap());
if force && u == &to {