fs_clonepath.cpp

This commit is contained in:
Antonio SJ Musumeci 2025-09-01 19:30:42 -05:00
parent 590cfe7e35
commit fc23f6fc79

View file

@ -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 != "/")
{