aboutsummaryrefslogtreecommitdiffstats
path: root/util/folder/path.h
diff options
context:
space:
mode:
authorkerzum <kerzum@yandex-team.ru>2022-02-10 16:49:33 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:49:33 +0300
commit47a7e7b29636bfb2deb1df5f92363b3c75229c95 (patch)
tree5d5cb817648f650d76cf1076100726fd9b8448e8 /util/folder/path.h
parent9a7232babfd763ccfe827bc70e82e0f50cfd8276 (diff)
downloadydb-47a7e7b29636bfb2deb1df5f92363b3c75229c95.tar.gz
Restoring authorship annotation for <kerzum@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/folder/path.h')
-rw-r--r--util/folder/path.h34
1 files changed, 17 insertions, 17 deletions
diff --git a/util/folder/path.h b/util/folder/path.h
index ce5a18f394..2fb4d6b4ef 100644
--- a/util/folder/path.h
+++ b/util/folder/path.h
@@ -46,7 +46,7 @@ public:
inline const char* c_str() const {
return Path_.c_str();
- }
+ }
inline operator const TString&() const {
return Path_;
@@ -60,17 +60,17 @@ public:
return Path_ != that.Path_;
}
- TFsPath& operator/=(const TFsPath& that);
+ TFsPath& operator/=(const TFsPath& that);
friend TFsPath operator/(const TFsPath& s, const TFsPath& p) {
TFsPath ret(s);
return ret /= p;
- }
-
+ }
+
const TPathSplit& PathSplit() const;
- TFsPath& Fix();
-
+ TFsPath& Fix();
+
inline const TString& GetPath() const {
return Path_;
}
@@ -97,7 +97,7 @@ public:
* @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;
+ bool IsSubpathOf(const TFsPath& that) const;
/**
* TFsPath("/a/b").IsNonStrictSubpathOf("/a") -> true
@@ -110,9 +110,9 @@ public:
*/
bool IsNonStrictSubpathOf(const TFsPath& that) const;
- bool IsContainerOf(const TFsPath& that) const {
- return that.IsSubpathOf(*this);
- }
+ bool IsContainerOf(const TFsPath& that) const {
+ return that.IsSubpathOf(*this);
+ }
TFsPath RelativeTo(const TFsPath& root) const; //must be subpath of root
@@ -127,11 +127,11 @@ public:
TFsPath Parent() const;
TString Basename() const {
- return GetName();
- }
+ return GetName();
+ }
TString Dirname() const {
- return Parent();
- }
+ return Parent();
+ }
TFsPath Child(const TString& name) const;
@@ -168,8 +168,8 @@ public:
inline bool Stat(TFileStat& stat) const {
stat = TFileStat(Path_.data());
- return stat.Mode;
- }
+ return stat.Mode;
+ }
bool Exists() const;
/// false if not exists
@@ -211,7 +211,7 @@ private:
/// cache
mutable TSimpleIntrusivePtr<TSplit> Split_;
};
-
+
namespace NPrivate {
inline void AppendToFsPath(TFsPath&) {
}