We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b445f0c commit 5d57e21Copy full SHA for 5d57e21
src/wsjcpp_core.cpp
@@ -549,6 +549,9 @@ bool WsjcppCore::makeDirsPath(const std::string &sDirname) {
549
std::string sDirpath = WsjcppCore::doNormalizePath(sDirname);
550
std::vector<std::string> vDirs = WsjcppCore::split(sDirpath, "/");
551
std::string sDirpath2 = "";
552
+ if (sDirpath.length() > 0 && sDirpath[0] == '/') {
553
+ sDirpath2 = "/";
554
+ }
555
for (int i = 0; i < vDirs.size(); i++) {
556
if (vDirs[i] == "") {
557
continue;
0 commit comments