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 | b93b3eb857a34bc32cef3c1b0c709e8365253b34 (patch) | |
tree | 5d5cb817648f650d76cf1076100726fd9b8448e8 /util/system/fs.cpp | |
parent | 3b5ee31ed70f690af39dfdec632060610b71b89e (diff) | |
download | ydb-b93b3eb857a34bc32cef3c1b0c709e8365253b34.tar.gz |
Restoring authorship annotation for <dmikhalev@yandex-team.ru>. Commit 2 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 c8988d85d6..d2611a8ccc 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_) |