aboutsummaryrefslogtreecommitdiffstats
path: root/util/system/fs.cpp
diff options
context:
space:
mode:
authorVasily Gerasimov <UgnineSirdis@gmail.com>2022-02-10 16:49:10 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:49:10 +0300
commit1eb755fbca92172a6aec2f57371b2b3a19dfab43 (patch)
tree5d5cb817648f650d76cf1076100726fd9b8448e8 /util/system/fs.cpp
parent6cdc8f140213c595e4ad38bc3d97fcef1146b8c3 (diff)
downloadydb-1eb755fbca92172a6aec2f57371b2b3a19dfab43.tar.gz
Restoring authorship annotation for Vasily Gerasimov <UgnineSirdis@gmail.com>. Commit 2 of 2.
Diffstat (limited to 'util/system/fs.cpp')
-rw-r--r--util/system/fs.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/util/system/fs.cpp b/util/system/fs.cpp
index e62be57d81..d2611a8ccc 100644
--- a/util/system/fs.cpp
+++ b/util/system/fs.cpp
@@ -18,7 +18,7 @@
bool NFs::Remove(const TString& path) {
#if defined(_win_)
- return NFsPrivate::WinRemove(path);
+ return NFsPrivate::WinRemove(path);
#else
return ::remove(path.data()) == 0;
#endif
@@ -86,21 +86,21 @@ bool NFs::MakeDirectoryRecursive(const TString& path, EFilePermissions mode, boo
bool NFs::Rename(const TString& oldPath, const TString& newPath) {
#if defined(_win_)
- return NFsPrivate::WinRename(oldPath, newPath);
+ return NFsPrivate::WinRename(oldPath, newPath);
#else
return ::rename(oldPath.data(), newPath.data()) == 0;
#endif
}
void NFs::HardLinkOrCopy(const TString& existingPath, const TString& newPath) {
- if (!NFs::HardLink(existingPath, newPath)) {
- Copy(existingPath, newPath);
+ if (!NFs::HardLink(existingPath, newPath)) {
+ Copy(existingPath, newPath);
}
}
bool NFs::HardLink(const TString& existingPath, const TString& newPath) {
#if defined(_win_)
- return NFsPrivate::WinHardLink(existingPath, newPath);
+ return NFsPrivate::WinHardLink(existingPath, newPath);
#elif defined(_unix_)
return (0 == link(existingPath.data(), newPath.data()));
#endif
@@ -108,7 +108,7 @@ bool NFs::HardLink(const TString& existingPath, const TString& newPath) {
bool NFs::SymLink(const TString& targetPath, const TString& linkPath) {
#if defined(_win_)
- return NFsPrivate::WinSymLink(targetPath, linkPath);
+ return NFsPrivate::WinSymLink(targetPath, linkPath);
#elif defined(_unix_)
return 0 == symlink(targetPath.data(), linkPath.data());
#endif
@@ -116,7 +116,7 @@ bool NFs::SymLink(const TString& targetPath, const TString& linkPath) {
TString NFs::ReadLink(const TString& path) {
#if defined(_win_)
- return NFsPrivate::WinReadLink(path);
+ return NFsPrivate::WinReadLink(path);
#elif defined(_unix_)
TTempBuf buf;
while (true) {
@@ -148,7 +148,7 @@ void NFs::Copy(const TString& existingPath, const TString& newPath) {
bool NFs::Exists(const TString& path) {
#if defined(_win_)
- return NFsPrivate::WinExists(path);
+ return NFsPrivate::WinExists(path);
#elif defined(_unix_)
return access(path.data(), F_OK) == 0;
#endif