From 5a01fb95ff2976783a9000b02aa6f2ade828fdd4 Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Fri, 11 Jul 2025 09:37:28 -0600 Subject: [PATCH] Ensure replace dialog shown for renames --- src/operation/mod.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/operation/mod.rs b/src/operation/mod.rs index 6ec3483..06988c4 100644 --- a/src/operation/mod.rs +++ b/src/operation/mod.rs @@ -310,6 +310,11 @@ async fn copy_or_move( //TODO: allow rename to be used for directories in recursive context? if matches!(method, Method::Move { .. }) { from_to_pairs.retain(|(from, to)| { + //TODO: show replace dialog here? + if to.exists() { + return true; + } + //TODO: use compio::fs::rename? match fs::rename(from, to) { Ok(()) => {