mirror of
https://github.com/Sude-/lgogdownloader.git
synced 2025-02-02 05:52:31 +01:00
Make sure that cache directory exists
This commit is contained in:
parent
9235ee8b4a
commit
eef4712b6e
10
main.cpp
10
main.cpp
@ -208,6 +208,16 @@ int main(int argc, char *argv[])
|
||||
}
|
||||
}
|
||||
|
||||
path = config.sCacheDirectory;
|
||||
if (!boost::filesystem::exists(path))
|
||||
{
|
||||
if (!boost::filesystem::create_directories(path))
|
||||
{
|
||||
std::cout << "Failed to create directory: " << path << std::endl;
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
||||
if (boost::filesystem::exists(config.sConfigFilePath))
|
||||
{
|
||||
std::ifstream ifs(config.sConfigFilePath.c_str());
|
||||
|
Loading…
x
Reference in New Issue
Block a user