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
6474f7cb27
commit
0ea606a398
1 changed files with 1 additions and 3 deletions
|
|
@ -74,9 +74,7 @@ fs::clonepath(const string &srcpath_,
|
|||
return 0;
|
||||
|
||||
dirname = stdfs::path{relpath_}.parent_path();
|
||||
|
||||
dirname = fs::path::dirname(relpath_);
|
||||
if(dirname != "/")
|
||||
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