diff options
author | Andrey Fomichev <andrey.fomichev@gmail.com> | 2022-02-10 16:49:15 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:49:15 +0300 |
commit | 1c61afbf3db63940d05e6fefa3104b03457788a1 (patch) | |
tree | 5d5cb817648f650d76cf1076100726fd9b8448e8 /util/folder | |
parent | e542cc14db4240643a06bb0dde87ecf361f101ab (diff) | |
download | ydb-1c61afbf3db63940d05e6fefa3104b03457788a1.tar.gz |
Restoring authorship annotation for Andrey Fomichev <andrey.fomichev@gmail.com>. Commit 2 of 2.
Diffstat (limited to 'util/folder')
-rw-r--r-- | util/folder/dirut.cpp | 6 | ||||
-rw-r--r-- | util/folder/dirut.h | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/util/folder/dirut.cpp b/util/folder/dirut.cpp index b405baa83e..ffc9b09f96 100644 --- a/util/folder/dirut.cpp +++ b/util/folder/dirut.cpp @@ -394,11 +394,11 @@ void RemoveDirWithContents(TString dirName) { } } } - + int mkpath(char* path, int mode) { return NFs::MakeDirectoryRecursive(path, NFs::EFilePermission(mode)) ? 0 : -1; -} - +} + // Implementation of realpath in FreeBSD (version 9.0 and less) and GetFullPathName in Windows // did not require last component of the file name to exist (other implementations will fail // if it does not). Use RealLocation if that behaviour is required. diff --git a/util/folder/dirut.h b/util/folder/dirut.h index b60847c894..2537027b12 100644 --- a/util/folder/dirut.h +++ b/util/folder/dirut.h @@ -40,7 +40,7 @@ char* mkdtemp(char* path); bool IsDir(const TString& path); int mkpath(char* path, int mode = 0777); - + TString GetHomeDir(); void MakeDirIfNotExist(const char* path, int mode = 0777); |