aboutsummaryrefslogtreecommitdiffstats
path: root/util/system/fstat.cpp
diff options
context:
space:
mode:
authoryazevnul <yazevnul@yandex-team.ru>2022-02-10 16:46:48 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:48 +0300
commit9abfb1a53b7f7b791444d1378e645d8fad9b06ed (patch)
tree49e222ea1c5804306084bb3ae065bb702625360f /util/system/fstat.cpp
parent8cbc307de0221f84c80c42dcbe07d40727537e2c (diff)
downloadydb-9abfb1a53b7f7b791444d1378e645d8fad9b06ed.tar.gz
Restoring authorship annotation for <yazevnul@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/system/fstat.cpp')
-rw-r--r--util/system/fstat.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/util/system/fstat.cpp b/util/system/fstat.cpp
index d25651621a..81e98cbc6b 100644
--- a/util/system/fstat.cpp
+++ b/util/system/fstat.cpp
@@ -132,23 +132,23 @@ TFileStat::TFileStat(const char* fileName, bool nofollow) {
MakeFromFileName(fileName, nofollow);
}
-bool TFileStat::IsNull() const noexcept {
+bool TFileStat::IsNull() const noexcept {
return *this == TFileStat();
}
-bool TFileStat::IsFile() const noexcept {
+bool TFileStat::IsFile() const noexcept {
return S_ISREG(Mode);
}
-bool TFileStat::IsDir() const noexcept {
+bool TFileStat::IsDir() const noexcept {
return S_ISDIR(Mode);
}
-bool TFileStat::IsSymlink() const noexcept {
+bool TFileStat::IsSymlink() const noexcept {
return S_ISLNK(Mode);
}
-bool operator==(const TFileStat& l, const TFileStat& r) noexcept {
+bool operator==(const TFileStat& l, const TFileStat& r) noexcept {
return l.Mode == r.Mode &&
l.Uid == r.Uid &&
l.Gid == r.Gid &&
@@ -159,7 +159,7 @@ bool operator==(const TFileStat& l, const TFileStat& r) noexcept {
l.CTime == r.CTime;
}
-bool operator!=(const TFileStat& l, const TFileStat& r) noexcept {
+bool operator!=(const TFileStat& l, const TFileStat& r) noexcept {
return !(l == r);
}