diff options
author | dmikhalev <dmikhalev@yandex-team.ru> | 2022-02-10 16:49:29 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:49:29 +0300 |
commit | 3b5ee31ed70f690af39dfdec632060610b71b89e (patch) | |
tree | f137aebad00b8064ec63fcd03ebc9fef5121eb9f /util/system/fs.cpp | |
parent | 3a0b7cd78a1a8366b3944d8d1e11ef9bb52549bf (diff) | |
download | ydb-3b5ee31ed70f690af39dfdec632060610b71b89e.tar.gz |
Restoring authorship annotation for <dmikhalev@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/system/fs.cpp')
-rw-r--r-- | util/system/fs.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/util/system/fs.cpp b/util/system/fs.cpp index d2611a8ccc..c8988d85d6 100644 --- a/util/system/fs.cpp +++ b/util/system/fs.cpp @@ -91,7 +91,7 @@ bool NFs::Rename(const TString& oldPath, const TString& newPath) { 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); @@ -101,10 +101,10 @@ void NFs::HardLinkOrCopy(const TString& existingPath, const TString& newPath) { bool NFs::HardLink(const TString& existingPath, const TString& newPath) { #if defined(_win_) return NFsPrivate::WinHardLink(existingPath, newPath); -#elif defined(_unix_) +#elif defined(_unix_) return (0 == link(existingPath.data(), newPath.data())); -#endif -} +#endif +} bool NFs::SymLink(const TString& targetPath, const TString& linkPath) { #if defined(_win_) |