mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-10-26 19:01:56 -04:00
mfm_dup.cpp
This commit is contained in:
parent
dc0c6d5506
commit
ca8193a18b
1 changed files with 4 additions and 4 deletions
|
|
@ -44,10 +44,6 @@ mfm::dup(const Opts::Dup &opts_)
|
|||
{
|
||||
auto relpath = stdfs::relative(de.path(),srcpath);
|
||||
|
||||
fs::clonepath(srcpath,
|
||||
dstpath,
|
||||
relpath.parent_path().string());
|
||||
|
||||
for(const auto &dstpath : srcpaths)
|
||||
{
|
||||
if(dstpath == srcpath)
|
||||
|
|
@ -57,6 +53,10 @@ mfm::dup(const Opts::Dup &opts_)
|
|||
srcpath.string(),
|
||||
dstpath.string(),
|
||||
relpath.parent_path().string());
|
||||
|
||||
fs::clonepath(srcpath,
|
||||
dstpath,
|
||||
relpath.parent_path().string());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue