diff options
author | kakabba <kakabba@yandex-team.ru> | 2022-02-10 16:46:04 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:04 +0300 |
commit | c8e3995898c443e78266f7420aac5fb3da15d413 (patch) | |
tree | a530e068cc107e227deccc80722204db63a4d75d /util/folder/dirut.cpp | |
parent | 110a978b66fe6c0916572df51cfead2a9b647174 (diff) | |
download | ydb-c8e3995898c443e78266f7420aac5fb3da15d413.tar.gz |
Restoring authorship annotation for <kakabba@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/folder/dirut.cpp')
-rw-r--r-- | util/folder/dirut.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/util/folder/dirut.cpp b/util/folder/dirut.cpp index ffc9b09f96..1c261c9dd7 100644 --- a/util/folder/dirut.cpp +++ b/util/folder/dirut.cpp @@ -399,9 +399,9 @@ 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. +// 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. TString RealPath(const TString& path) { TTempBuf result; Y_ASSERT(result.Size() > MAX_PATH); //TMP_BUF_LEN > MAX_PATH @@ -416,13 +416,13 @@ TString RealPath(const TString& path) { TString RealLocation(const TString& path) { if (NFs::Exists(path)) - return RealPath(path); + return RealPath(path); TString dirpath = GetDirName(path); if (NFs::Exists(dirpath)) return RealPath(dirpath) + GetDirectorySeparatorS() + GetFileNameComponent(path.data()); - ythrow TFileError() << "RealLocation failed \"" << path << "\""; -} - + ythrow TFileError() << "RealLocation failed \"" << path << "\""; +} + int MakeTempDir(char path[/*FILENAME_MAX*/], const char* prefix) { int ret; |