From fc23f6fc7927759c15e8c9fa489ca728ab35f572 Mon Sep 17 00:00:00 2001 From: Antonio SJ Musumeci Date: Mon, 1 Sep 2025 19:30:42 -0500 Subject: [PATCH] fs_clonepath.cpp --- src/fs_clonepath.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/fs_clonepath.cpp b/src/fs_clonepath.cpp index 3f7c6d76..f6d4b9e3 100644 --- a/src/fs_clonepath.cpp +++ b/src/fs_clonepath.cpp @@ -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 != "/") {