Browse Source

mfm_dup.cpp

mfm
Antonio SJ Musumeci 2 months ago
parent
commit
ca8193a18b
  1. 8
      src/mfm_dup.cpp

8
src/mfm_dup.cpp

@ -44,10 +44,6 @@ mfm::dup(const Opts::Dup &opts_)
{ {
auto relpath = stdfs::relative(de.path(),srcpath); auto relpath = stdfs::relative(de.path(),srcpath);
fs::clonepath(srcpath,
dstpath,
relpath.parent_path().string());
for(const auto &dstpath : srcpaths) for(const auto &dstpath : srcpaths)
{ {
if(dstpath == srcpath) if(dstpath == srcpath)
@ -57,6 +53,10 @@ mfm::dup(const Opts::Dup &opts_)
srcpath.string(), srcpath.string(),
dstpath.string(), dstpath.string(),
relpath.parent_path().string()); relpath.parent_path().string());
fs::clonepath(srcpath,
dstpath,
relpath.parent_path().string());
} }
} }
} }

Loading…
Cancel
Save