mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-11-30 03:47:02 -05:00
mfm_dup.cpp
This commit is contained in:
parent
7126108e4d
commit
5612491a6a
1 changed files with 5 additions and 9 deletions
|
|
@ -49,17 +49,13 @@ mfm::dup(const Opts::Dup &opts_)
|
|||
if(dstpath == srcpath)
|
||||
continue;
|
||||
|
||||
stdfs::path srcbasepath;
|
||||
stdfs::path dstbasepath;
|
||||
|
||||
srcbasepath = srcpath / relpath.parent_path();
|
||||
dstbasepath = dstpath / relpath.parent_path();
|
||||
|
||||
fmt::println("copy {} to {} : {}",
|
||||
srcbasepath.string(),
|
||||
dstbasepath.string(),
|
||||
srcpath.string(),
|
||||
dstpath.string(),
|
||||
relpath.filename().string());
|
||||
fs::clonepath(srcbasepath,dstbasepath);
|
||||
fs::clonepath(srcpath,
|
||||
dstpath,
|
||||
relpath
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue