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
commite20e2b362f0232ed5a389db887e6e27e7763af18 (patch)
treeb222e5ac2e2e98872661c51ccceee5da0d291e13 /util/folder
parent7629e1f9ef7f9d2a3c345c97e6a4e5a4b32ee786 (diff)
downloadydb-e20e2b362f0232ed5a389db887e6e27e7763af18.tar.gz
Restoring authorship annotation for <diver@yandex-team.ru>. Commit 2 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 5227f2df3a..bfe0c67d68 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 9ce01ef655..ff458f83b9 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();
}