diff options
author | Vasily Gerasimov <UgnineSirdis@gmail.com> | 2022-02-10 16:49:09 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:49:09 +0300 |
commit | 6cdc8f140213c595e4ad38bc3d97fcef1146b8c3 (patch) | |
tree | f69637041e6fed76ebae0c74ae1fa0c4be6ab5b4 /util/system/fs.cpp | |
parent | e5d4696304c6689379ac7ce334512404d4b7836c (diff) | |
download | ydb-6cdc8f140213c595e4ad38bc3d97fcef1146b8c3.tar.gz |
Restoring authorship annotation for Vasily Gerasimov <UgnineSirdis@gmail.com>. Commit 1 of 2.
Diffstat (limited to 'util/system/fs.cpp')
-rw-r--r-- | util/system/fs.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/util/system/fs.cpp b/util/system/fs.cpp index d2611a8ccc..e62be57d81 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 |