aboutsummaryrefslogtreecommitdiffstats
path: root/util/folder
diff options
context:
space:
mode:
authordiver <diver@yandex-team.ru>2022-02-10 16:48:07 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:48:07 +0300
commit7629e1f9ef7f9d2a3c345c97e6a4e5a4b32ee786 (patch)
treec3371bfa47641a52244267b63009d16e4e7054ff /util/folder
parentcc573d2716c99ba22afc98753971cd97fd5283e0 (diff)
downloadydb-7629e1f9ef7f9d2a3c345c97e6a4e5a4b32ee786.tar.gz
Restoring authorship annotation for <diver@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/folder')
-rw-r--r--util/folder/path.cpp10
-rw-r--r--util/folder/tempdir.h6
2 files changed, 8 insertions, 8 deletions
diff --git a/util/folder/path.cpp b/util/folder/path.cpp
index bfe0c67d687..5227f2df3a2 100644
--- a/util/folder/path.cpp
+++ b/util/folder/path.cpp
@@ -333,12 +333,12 @@ bool TFsPath::Exists() const {
return IsDefined() && NFs::Exists(*this);
}
-void TFsPath::CheckExists() const {
- if (!Exists()) {
+void TFsPath::CheckExists() const {
+ if (!Exists()) {
ythrow TIoException() << "path does not exist " << Path_;
- }
-}
-
+ }
+}
+
bool TFsPath::IsDirectory() const {
return IsDefined() && TFileStat(GetPath().data()).IsDir();
}
diff --git a/util/folder/tempdir.h b/util/folder/tempdir.h
index ff458f83b9b..9ce01ef6551 100644
--- a/util/folder/tempdir.h
+++ b/util/folder/tempdir.h
@@ -18,9 +18,9 @@ public:
static TTempDir NewTempDir(const TString& root);
const TString& operator()() const {
- return Name();
- }
-
+ return Name();
+ }
+
const TString& Name() const {
return TempDir.GetPath();
}