diff options
author | stanly <[email protected]> | 2022-02-10 16:46:49 +0300 |
---|---|---|
committer | Daniil Cherednik <[email protected]> | 2022-02-10 16:46:49 +0300 |
commit | 6170310e8721e225f64ddabf7a7358253d7a1249 (patch) | |
tree | 49e222ea1c5804306084bb3ae065bb702625360f /util/folder/path.cpp | |
parent | cde218e65dfef5ce03a48d641fd8f7913cf17b2d (diff) |
Restoring authorship annotation for <[email protected]>. Commit 2 of 2.
Diffstat (limited to 'util/folder/path.cpp')
-rw-r--r-- | util/folder/path.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/util/folder/path.cpp b/util/folder/path.cpp index 0b5a1a83ae1..bfe0c67d687 100644 --- a/util/folder/path.cpp +++ b/util/folder/path.cpp @@ -367,14 +367,14 @@ void TFsPath::MkDir(const int mode) const { CheckDefined(); if (!Exists()) { int r = Mkdir(this->c_str(), mode); - if (r != 0) { - // TODO (stanly) will still fail on Windows because - // LastSystemError() returns windows specific ERROR_ALREADY_EXISTS - // instead of EEXIST. - if (LastSystemError() != EEXIST) { - ythrow TIoSystemError() << "could not create directory " << Path_; - } - } + if (r != 0) { + // TODO (stanly) will still fail on Windows because + // LastSystemError() returns windows specific ERROR_ALREADY_EXISTS + // instead of EEXIST. + if (LastSystemError() != EEXIST) { + ythrow TIoSystemError() << "could not create directory " << Path_; + } + } } } |