|
|
|
@ -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()); |
|
|
|
|