fs_clonepath.cpp

This commit is contained in:
Antonio SJ Musumeci 2025-09-01 18:35:46 -05:00
parent 6ef6198719
commit 1ca97602f6

View file

@ -68,11 +68,12 @@ fs::clonepath(const string &srcpath_,
struct stat st;
string dstpath;
string srcpath;
string dirname;
stdfs::path dirname;
if((relpath_ == NULL) || (relpath_[0] == '\0'))
return 0;
dirname = fs::path::dirname(relpath_);
if(dirname != "/")
{