diff options
author | ilezhankin <ilezhankin@yandex-team.ru> | 2022-02-10 16:45:55 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:45:55 +0300 |
commit | 1d125034f06575234f83f24f08677955133f140e (patch) | |
tree | ec05fbbd61dc118d5de37f206ab978cff58774bd /util/folder/path.cpp | |
parent | 3a7a498715ef1b66f5054455421b845e45e3a653 (diff) | |
download | ydb-1d125034f06575234f83f24f08677955133f140e.tar.gz |
Restoring authorship annotation for <ilezhankin@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/folder/path.cpp')
-rw-r--r-- | util/folder/path.cpp | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/util/folder/path.cpp b/util/folder/path.cpp index bfe0c67d687..a8b3a4535a9 100644 --- a/util/folder/path.cpp +++ b/util/folder/path.cpp @@ -258,23 +258,23 @@ void TFsPath::ListNames(TVector<TString>& children) const { } } -bool TFsPath::Contains(const TString& component) const { - if (!IsDefined()) { - return false; - } - - TFsPath path = *this; - while (path.Parent() != path) { - if (path.GetName() == component) { - return true; - } - - path = path.Parent(); - } - - return false; -} - +bool TFsPath::Contains(const TString& component) const { + if (!IsDefined()) { + return false; + } + + TFsPath path = *this; + while (path.Parent() != path) { + if (path.GetName() == component) { + return true; + } + + path = path.Parent(); + } + + return false; +} + void TFsPath::List(TVector<TFsPath>& files) const { TVector<TString> names; ListNames(names); |