aboutsummaryrefslogtreecommitdiffstats
path: root/util/folder
diff options
context:
space:
mode:
authorvayerx <vayerx@yandex-team.ru>2022-02-10 16:52:04 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:52:04 +0300
commitb3f694bf40fc2866a161b2d25911171879b7ef18 (patch)
treeab7fbbf3253d4c0e2793218f09378908beb025fb /util/folder
parentd40bf94919f2035f1f522c4a285adce76f8f4edc (diff)
downloadydb-b3f694bf40fc2866a161b2d25911171879b7ef18.tar.gz
Restoring authorship annotation for <vayerx@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/folder')
-rw-r--r--util/folder/dirut.cpp6
-rw-r--r--util/folder/dirut.h4
2 files changed, 5 insertions, 5 deletions
diff --git a/util/folder/dirut.cpp b/util/folder/dirut.cpp
index 825e00f765..ffc9b09f96 100644
--- a/util/folder/dirut.cpp
+++ b/util/folder/dirut.cpp
@@ -486,9 +486,9 @@ void MakePathIfNotExist(const char* path, int mode) {
NFs::MakeDirectoryRecursive(path, NFs::EFilePermission(mode));
if (!NFs::Exists(path) || !TFileStat(path).IsDir()) {
ythrow TSystemError() << "failed to create directory " << path;
- }
-}
-
+ }
+}
+
const char* GetFileNameComponent(const char* f) {
const char* p = strrchr(f, LOCSLASH_C);
#ifdef _win_
diff --git a/util/folder/dirut.h b/util/folder/dirut.h
index f8e0546321..2537027b12 100644
--- a/util/folder/dirut.h
+++ b/util/folder/dirut.h
@@ -49,9 +49,9 @@ inline void MakeDirIfNotExist(const TString& path, int mode = 0777) {
MakeDirIfNotExist(path.data(), mode);
}
-/// Create path making parent directories as needed
+/// Create path making parent directories as needed
void MakePathIfNotExist(const char* path, int mode = 0777);
-
+
void SlashFolderLocal(TString& folder);
bool correctpath(TString& filename);
bool resolvepath(TString& folder, const TString& home);