diff options
author | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:32:48 +0200 |
---|---|---|
committer | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:32:48 +0200 |
commit | 1249b507dd7b3ada7066b129d1a6552a90836084 (patch) | |
tree | dbe7be194c5b4ee57bd14198821ac1959b577262 /zen/file_handling.cpp | |
parent | 6.3 (diff) | |
download | FreeFileSync-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.cpp | 5 |
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; |