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
b08b727a72
commit
590cfe7e35
1 changed files with 3 additions and 1 deletions
|
|
@ -72,7 +72,9 @@ fs::clonepath(const string &srcpath_,
|
|||
if((relpath_ == NULL) || (relpath_[0] == '\0'))
|
||||
return 0;
|
||||
|
||||
|
||||
relpath = relpath_;
|
||||
if(relpath[0] != '/')
|
||||
relpath = '/' + relpath;
|
||||
|
||||
dirname = fs::path::dirname(relpath_);
|
||||
if(dirname != "/")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue