summaryrefslogtreecommitdiff
path: root/zen/file_handling.cpp
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2014-04-18 17:32:48 +0200
committerDaniel Wilhelm <daniel@wili.li>2014-04-18 17:32:48 +0200
commit1249b507dd7b3ada7066b129d1a6552a90836084 (patch)
treedbe7be194c5b4ee57bd14198821ac1959b577262 /zen/file_handling.cpp
parent6.3 (diff)
downloadFreeFileSync-1249b507dd7b3ada7066b129d1a6552a90836084.tar.gz
FreeFileSync-1249b507dd7b3ada7066b129d1a6552a90836084.tar.bz2
FreeFileSync-1249b507dd7b3ada7066b129d1a6552a90836084.zip
6.4
Diffstat (limited to 'zen/file_handling.cpp')
-rw-r--r--zen/file_handling.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/zen/file_handling.cpp b/zen/file_handling.cpp
index b1b2e026..87ffee62 100644
--- a/zen/file_handling.cpp
+++ b/zen/file_handling.cpp
@@ -1172,11 +1172,10 @@ void makeDirectoryRecursively(const Zstring& directory) //FileError, ErrorTarget
{
makeDirectoryRecursively(dirParent); //throw FileError, (ErrorTargetExisting)
}
- catch (const ErrorTargetExisting& e) { throw FileError(e.toString()); }
- //yes it's pathological, but we do not want to emit ErrorTargetExisting when creating parent directories!
+ catch (const ErrorTargetExisting&) { /*parent directory created externally in the meantime? => NOT AN ERROR*/ }
//now try again...
- makeDirectoryPlain(directory, Zstring(), false); //throw FileError, ErrorTargetExisting, (ErrorTargetPathMissing)
+ makeDirectoryPlain(directory, Zstring(), false); //throw FileError, (ErrorTargetExisting), (ErrorTargetPathMissing)
return;
}
throw;
bgstack15