Skip to content

Commit

Permalink
fixed bug with missed data directory
Browse files Browse the repository at this point in the history
  • Loading branch information
orignal committed Mar 10, 2016
1 parent 74d4b8e commit 38b6c12
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions FS.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,10 @@ namespace fs {
}

bool Init() {
if (boost::filesystem::exists(dataDir))
if (!boost::filesystem::exists(dataDir))
boost::filesystem::create_directory(dataDir);
std::string destinations = DataDirPath("destinations");
if (boost::filesystem::exists(destinations))
if (!boost::filesystem::exists(destinations))
boost::filesystem::create_directory(destinations);

return true;
Expand Down

0 comments on commit 38b6c12

Please sign in to comment.