mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-11-20 23:16:27 -05:00
mfm_dup.cpp
This commit is contained in:
parent
c83949790f
commit
94c7c5b6b2
1 changed files with 4 additions and 0 deletions
|
|
@ -44,6 +44,10 @@ 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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue