mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
..
This commit is contained in:
parent
19ebbd3df3
commit
4ddecbb6ee
2 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue