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
590cfe7e35
commit
fc23f6fc79
1 changed files with 2 additions and 1 deletions
|
|
@ -66,7 +66,7 @@ fs::clonepath(const string &srcpath_,
|
|||
struct stat st;
|
||||
string dstpath;
|
||||
string srcpath;
|
||||
string dirname;
|
||||
stdfs::path dirname;
|
||||
stdfs::path relpath;
|
||||
|
||||
if((relpath_ == NULL) || (relpath_[0] == '\0'))
|
||||
|
|
@ -76,6 +76,7 @@ fs::clonepath(const string &srcpath_,
|
|||
if(relpath[0] != '/')
|
||||
relpath = '/' + relpath;
|
||||
|
||||
|
||||
dirname = fs::path::dirname(relpath_);
|
||||
if(dirname != "/")
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue