aboutsummaryrefslogtreecommitdiffstats
path: root/util/system/fs.cpp
diff options
context:
space:
mode:
authoryazevnul <yazevnul@yandex-team.ru>2022-02-10 16:46:46 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:46 +0300
commit8cbc307de0221f84c80c42dcbe07d40727537e2c (patch)
tree625d5a673015d1df891e051033e9fcde5c7be4e5 /util/system/fs.cpp
parent30d1ef3941e0dc835be7609de5ebee66958f215a (diff)
downloadydb-8cbc307de0221f84c80c42dcbe07d40727537e2c.tar.gz
Restoring authorship annotation for <yazevnul@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/system/fs.cpp')
-rw-r--r--util/system/fs.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/util/system/fs.cpp b/util/system/fs.cpp
index d2611a8ccc..c95e77e4df 100644
--- a/util/system/fs.cpp
+++ b/util/system/fs.cpp
@@ -43,7 +43,7 @@ void NFs::RemoveRecursive(const TString& path) {
switch (it->fts_info) {
case FTS_DOT:
case FTS_D:
- break;
+ break;
default:
if (!NFs::Remove(it->fts_path)) {
ythrow TSystemError() << errStr << it->fts_path << " with cwd (" << NFs::CurrentWorkingDirectory() << ")";
@@ -55,7 +55,7 @@ void NFs::RemoveRecursive(const TString& path) {
bool NFs::MakeDirectory(const TString& path, EFilePermissions mode) {
#if defined(_win_)
- Y_UNUSED(mode);
+ Y_UNUSED(mode);
return NFsPrivate::WinMakeDirectory(path);
#else
return mkdir(path.data(), mode) == 0;
@@ -65,8 +65,8 @@ bool NFs::MakeDirectory(const TString& path, EFilePermissions mode) {
bool NFs::MakeDirectoryRecursive(const TString& path, EFilePermissions mode, bool alwaysCreate) {
if (NFs::Exists(path) && TFileStat(path).IsDir()) {
if (alwaysCreate) {
- ythrow TIoException() << "path " << path << " already exists"
- << " with cwd (" << NFs::CurrentWorkingDirectory() << ")";
+ ythrow TIoException() << "path " << path << " already exists"
+ << " with cwd (" << NFs::CurrentWorkingDirectory() << ")";
}
return true;
} else {