mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-10-26 02:48:59 -04:00
mfm_dup.cpp
This commit is contained in:
parent
8b099982da
commit
b3dfe45bd3
1 changed files with 6 additions and 3 deletions
|
|
@ -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());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue