diff options
author | tldr <tldr@yandex-team.ru> | 2022-02-10 16:50:18 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:50:18 +0300 |
commit | 42d219fbd63ee173b0cb7db1b26a3ec615f0bb71 (patch) | |
tree | 5d5cb817648f650d76cf1076100726fd9b8448e8 /util/folder/path.h | |
parent | fb217752f4b5a81abe9df05e38c5a71d080fc2a8 (diff) | |
download | ydb-42d219fbd63ee173b0cb7db1b26a3ec615f0bb71.tar.gz |
Restoring authorship annotation for <tldr@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/folder/path.h')
-rw-r--r-- | util/folder/path.h | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/util/folder/path.h b/util/folder/path.h index 4582b3fe7b..2fb4d6b4ef 100644 --- a/util/folder/path.h +++ b/util/folder/path.h @@ -88,27 +88,27 @@ public: bool IsAbsolute() const; bool IsRelative() const; - /** - * TFsPath("/a/b").IsSubpathOf("/a") -> true - * - * TFsPath("/a").IsSubpathOf("/a") -> false - * - * TFsPath("/a").IsSubpathOf("/other/path") -> false - * @param that - presumable parent path of this - * @return True if this is a subpath of that and false otherwise. - */ + /** + * TFsPath("/a/b").IsSubpathOf("/a") -> true + * + * TFsPath("/a").IsSubpathOf("/a") -> false + * + * TFsPath("/a").IsSubpathOf("/other/path") -> false + * @param that - presumable parent path of this + * @return True if this is a subpath of that and false otherwise. + */ bool IsSubpathOf(const TFsPath& that) const; - - /** - * TFsPath("/a/b").IsNonStrictSubpathOf("/a") -> true - * - * TFsPath("/a").IsNonStrictSubpathOf("/a") -> true - * - * TFsPath("/a").IsNonStrictSubpathOf("/other/path") -> false - * @param that - presumable parent path of this - * @return True if this is a subpath of that or they are equivalent and false otherwise. - */ - bool IsNonStrictSubpathOf(const TFsPath& that) const; + + /** + * TFsPath("/a/b").IsNonStrictSubpathOf("/a") -> true + * + * TFsPath("/a").IsNonStrictSubpathOf("/a") -> true + * + * TFsPath("/a").IsNonStrictSubpathOf("/other/path") -> false + * @param that - presumable parent path of this + * @return True if this is a subpath of that or they are equivalent and false otherwise. + */ + bool IsNonStrictSubpathOf(const TFsPath& that) const; bool IsContainerOf(const TFsPath& that) const { return that.IsSubpathOf(*this); |