diff options
author | RALOVICH, Kristóf <tade60@freemail.hu> | 2013-08-06 11:31:09 +0200 |
---|---|---|
committer | RALOVICH, Kristóf <tade60@freemail.hu> | 2013-08-06 11:31:09 +0200 |
commit | 22ce19ad39c9e2213f9293bb148d30134a24bad5 (patch) | |
tree | 24cc69f13347f5eb70a64de0b26f431978ad94d2 /src | |
parent | 18acd1346f4a8aafa237d2b95568beb80bccc77e (diff) |
AntFr310XT: relax the check when creating download folde
maybe the folder is already there and we can just use it
Diffstat (limited to 'src')
-rw-r--r-- | src/AntFr310XT.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/AntFr310XT.cpp b/src/AntFr310XT.cpp index 1c5892e..2650717 100644 --- a/src/AntFr310XT.cpp +++ b/src/AntFr310XT.cpp @@ -666,7 +666,16 @@ AntFr310XT2::createDownloadFolder() ss << m_ds->getFolder() << "/" << getDateString() + "/"; folder = ss.str(); //folder = getConfigFolder() + "/" + getDateString() + "/"; - CHECK_RETURN_FALSE(mkDir(folder.c_str())); + if(!mkDir(folder.c_str())) + { + if(folderExists(folder.c_str())) + return true; + else + { + LOG(LOG_ERR) << "Folder \"" << folder << "\" doesn't exist, and could not be created either!\n"; + return false; + } + } return true; } |