Merge pull request #1446 from gaul/use-cache/relative-path

Allow relative path with use_path
This commit is contained in:
Takeshi Nakatani 2020-10-10 23:13:07 +09:00 committed by GitHub
commit 2188fb067e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)){