diff --git a/src/s3fs_util.cpp b/src/s3fs_util.cpp index 24c8e86..b07f158 100644 --- a/src/s3fs_util.cpp +++ b/src/s3fs_util.cpp @@ -206,7 +206,7 @@ int mkdirp(const std::string& path, mode_t mode) std::string component; std::istringstream ss(path); while (getline(ss, component, '/')) { - base += "/" + component; + base += component + "/"; struct stat st; if(0 == stat(base.c_str(), &st)){