aboutsummaryrefslogtreecommitdiffstats
path: root/util/folder/path.cpp
diff options
context:
space:
mode:
authorilezhankin <ilezhankin@yandex-team.ru>2022-02-10 16:45:56 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:45:56 +0300
commit62a805381e41500fbc7914c37c71ab040a098f4e (patch)
tree1a2c5ffcf89eb53ecd79dbc9bc0a195c27404d0c /util/folder/path.cpp
parent1d125034f06575234f83f24f08677955133f140e (diff)
downloadydb-62a805381e41500fbc7914c37c71ab040a098f4e.tar.gz
Restoring authorship annotation for <ilezhankin@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/folder/path.cpp')
-rw-r--r--util/folder/path.cpp34
1 files changed, 17 insertions, 17 deletions
diff --git a/util/folder/path.cpp b/util/folder/path.cpp
index a8b3a4535a..bfe0c67d68 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);