diff options
author | diver <diver@yandex-team.ru> | 2022-02-10 16:48:07 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:48:07 +0300 |
commit | 7629e1f9ef7f9d2a3c345c97e6a4e5a4b32ee786 (patch) | |
tree | c3371bfa47641a52244267b63009d16e4e7054ff /util/folder/path.cpp | |
parent | cc573d2716c99ba22afc98753971cd97fd5283e0 (diff) | |
download | ydb-7629e1f9ef7f9d2a3c345c97e6a4e5a4b32ee786.tar.gz |
Restoring authorship annotation for <diver@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/folder/path.cpp')
-rw-r--r-- | util/folder/path.cpp | 10 |
1 files changed, 5 insertions, 5 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(); } |