diff --git a/Common/File/Path.cpp b/Common/File/Path.cpp index 3a44c0c0f8..cbfc5f9099 100644 --- a/Common/File/Path.cpp +++ b/Common/File/Path.cpp @@ -87,7 +87,7 @@ Path Path::operator /(const std::string &subdir) const { return Path(path_); } std::string fullPath = path_; - if (subdir.front() != '/') { + if (subdir.front() != '/' && (fullPath.empty() || fullPath.back() != '/')) { fullPath += "/"; } fullPath += subdir;