mfm_dup.cpp

This commit is contained in:
Antonio SJ Musumeci
2025-09-01 20:24:03 -05:00
parent 8b099982da
commit b3dfe45bd3
+6 -3
View File
@@ -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());