From 897c4620d0c29bc2091b8be3b1d674f1b368a173 Mon Sep 17 00:00:00 2001 From: sxyazi Date: Sat, 4 Apr 2026 21:28:24 +0800 Subject: [PATCH] .. --- yazi-vfs/src/provider/copier.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/yazi-vfs/src/provider/copier.rs b/yazi-vfs/src/provider/copier.rs index c427d1e5..358c1b64 100644 --- a/yazi-vfs/src/provider/copier.rs +++ b/yazi-vfs/src/provider/copier.rs @@ -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();