mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-10-21 05:20:27 +00:00
mfm_dup.cpp
This commit is contained in:
+6
-3
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user