aboutsummaryrefslogtreecommitdiffstats
path: root/util/folder
diff options
context:
space:
mode:
authorpyos <pyos@yandex-team.ru>2022-02-10 16:47:49 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:47:49 +0300
commitef985e41af0868676d7a2275f1d90261253ddf3b (patch)
tree3a6a11d19d8c39c7b90c132bce7e1c3536be37c1 /util/folder
parent8387f1fb70a4161b7581d3c0da52c4810df655be (diff)
downloadydb-ef985e41af0868676d7a2275f1d90261253ddf3b.tar.gz
Restoring authorship annotation for <pyos@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/folder')
-rw-r--r--util/folder/path.cpp4
-rw-r--r--util/folder/path.h2
-rw-r--r--util/folder/path_ut.cpp20
3 files changed, 13 insertions, 13 deletions
diff --git a/util/folder/path.cpp b/util/folder/path.cpp
index bfe0c67d68..6aa49eab88 100644
--- a/util/folder/path.cpp
+++ b/util/folder/path.cpp
@@ -311,12 +311,12 @@ void TFsPath::Touch() const {
// XXX: move implementation to util/somewhere.
TFsPath TFsPath::RealPath() const {
CheckDefined();
- return ::RealPath(*this);
+ return ::RealPath(*this);
}
TFsPath TFsPath::RealLocation() const {
CheckDefined();
- return ::RealLocation(*this);
+ return ::RealLocation(*this);
}
TFsPath TFsPath::ReadLink() const {
diff --git a/util/folder/path.h b/util/folder/path.h
index 2fb4d6b4ef..5de67c1597 100644
--- a/util/folder/path.h
+++ b/util/folder/path.h
@@ -208,7 +208,7 @@ private:
private:
TString Path_;
- /// cache
+ /// cache
mutable TSimpleIntrusivePtr<TSplit> Split_;
};
diff --git a/util/folder/path_ut.cpp b/util/folder/path_ut.cpp
index e6a3451016..984a9333b0 100644
--- a/util/folder/path_ut.cpp
+++ b/util/folder/path_ut.cpp
@@ -175,17 +175,17 @@ Y_UNIT_TEST_SUITE(TFsPathTests) {
#ifndef _win_
Y_UNIT_TEST(TestRealPath) {
UNIT_ASSERT(TFsPath(".").RealPath().IsDirectory());
-
- TTestDirectory td("TestRealPath");
- TFsPath link = td.Child("link");
- TFsPath target1 = td.Child("target1");
- target1.Touch();
- TFsPath target2 = td.Child("target2");
- target2.Touch();
- UNIT_ASSERT(NFs::SymLink(target1.RealPath(), link.GetPath()));
+
+ TTestDirectory td("TestRealPath");
+ TFsPath link = td.Child("link");
+ TFsPath target1 = td.Child("target1");
+ target1.Touch();
+ TFsPath target2 = td.Child("target2");
+ target2.Touch();
+ UNIT_ASSERT(NFs::SymLink(target1.RealPath(), link.GetPath()));
UNIT_ASSERT_VALUES_EQUAL(link.RealPath(), target1.RealPath());
- UNIT_ASSERT(NFs::Remove(link.GetPath()));
- UNIT_ASSERT(NFs::SymLink(target2.RealPath(), link.GetPath()));
+ UNIT_ASSERT(NFs::Remove(link.GetPath()));
+ UNIT_ASSERT(NFs::SymLink(target2.RealPath(), link.GetPath()));
UNIT_ASSERT_VALUES_EQUAL(link.RealPath(), target2.RealPath()); // must not cache old value
}
#endif