From b3dfe45bd31053b5aa5d53ecfa546a7989064337 Mon Sep 17 00:00:00 2001 From: Antonio SJ Musumeci Date: Mon, 1 Sep 2025 20:24:03 -0500 Subject: [PATCH] mfm_dup.cpp --- src/mfm_dup.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/mfm_dup.cpp b/src/mfm_dup.cpp index 06ec5a68..07c32f83 100644 --- a/src/mfm_dup.cpp +++ b/src/mfm_dup.cpp @@ -53,15 +53,18 @@ mfm::dup(const Opts::Dup &opts_) if(dstpath == srcpath) continue; + auto srcfullpath = srcpath / relpath.relative_path(); + auto dstfullpath = srcpath / relpath.relative_path(); + + if(stdfs::exists(dstfullpath)) + continue; + fmt::println("copy {} to {} : {} : {}", srcpath.string(), dstpath.string(), relpath.parent_path().string(), relpath.filename().string()); - auto srcfullpath = srcpath / relpath.relative_path(); - auto dstfullpath = srcpath / relpath.relative_path(); - fs::clonepath(srcpath, dstpath, relpath.parent_path());