mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-10-26 19:01:56 -04:00
fs_clonepath.cpp
This commit is contained in:
parent
fc23f6fc79
commit
412ed6bb4c
1 changed files with 2 additions and 3 deletions
|
|
@ -76,9 +76,8 @@ fs::clonepath(const string &srcpath_,
|
|||
if(relpath[0] != '/')
|
||||
relpath = '/' + relpath;
|
||||
|
||||
|
||||
dirname = fs::path::dirname(relpath_);
|
||||
if(dirname != "/")
|
||||
dirname = relpath.parent_path();
|
||||
if(dirname == dirname.root_path())
|
||||
{
|
||||
rv = fs::clonepath(srcpath_,dstpath_,dirname,return_metadata_errors_);
|
||||
if(rv < 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue