diff --git a/src/cache.cpp b/src/cache.cpp index ea75032..add534a 100644 --- a/src/cache.cpp +++ b/src/cache.cpp @@ -16,8 +16,8 @@ namespace gdpm::cache{ /* Check and make sure directory is created before attempting to open */ namespace fs = std::filesystem; - fs::path dir_path = fs::path(cache_path).parent.path(); - if(!fs::exists(dir_path){ + fs::path dir_path = fs::path(cache_path).parent_path(); + if(!fs::exists(dir_path)){ log::info("Creating cache directories...{}", cache_path); fs::create_directories(dir_path); }