diff options
author | Andrey Fomichev <andrey.fomichev@gmail.com> | 2022-02-10 16:49:12 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:49:12 +0300 |
commit | e542cc14db4240643a06bb0dde87ecf361f101ab (patch) | |
tree | 3b03a4b94acd11a4eca042532035806e5fa08ad1 /util/folder | |
parent | e2ac73225f30f7fcf7df3cb225cba257f56144c1 (diff) | |
download | ydb-e542cc14db4240643a06bb0dde87ecf361f101ab.tar.gz |
Restoring authorship annotation for Andrey Fomichev <andrey.fomichev@gmail.com>. Commit 1 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 ffc9b09f96..b405baa83e 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 2537027b12..b60847c894 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); |