summaryrefslogtreecommitdiffstats
path: root/util/folder/path.cpp
diff options
context:
space:
mode:
authorstanly <[email protected]>2022-02-10 16:46:49 +0300
committerDaniil Cherednik <[email protected]>2022-02-10 16:46:49 +0300
commitcde218e65dfef5ce03a48d641fd8f7913cf17b2d (patch)
treed3349caea4095825a55b5ba24fe758067b29ce6f /util/folder/path.cpp
parent9f813499b4ef585cb3c2bb93de93ef003daf4fc4 (diff)
Restoring authorship annotation for <[email protected]>. Commit 1 of 2.
Diffstat (limited to 'util/folder/path.cpp')
-rw-r--r--util/folder/path.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/util/folder/path.cpp b/util/folder/path.cpp
index bfe0c67d687..0b5a1a83ae1 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_;
+ }
+ }
}
}