mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
..
This commit is contained in:
parent
c176de9a30
commit
897c4620d0
1 changed files with 4 additions and 0 deletions
|
|
@ -34,6 +34,7 @@ pub(super) fn copy_with_progress_impl(
|
|||
rx
|
||||
}
|
||||
|
||||
// --- ProgressiveCopier
|
||||
struct ProgressiveCopier {
|
||||
from: UrlBuf,
|
||||
to: UrlBuf,
|
||||
|
|
@ -92,6 +93,9 @@ impl ProgressiveCopier {
|
|||
self.prog_tx.send(Ok(n)).await.ok();
|
||||
}
|
||||
|
||||
if let Ok(None) = &mut result {
|
||||
result = Ok(dist.take());
|
||||
}
|
||||
if let Ok(Some(file)) = &mut result {
|
||||
file.set_attrs(self.attrs).await.ok();
|
||||
file.shutdown().await.ok();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue