aboutsummaryrefslogtreecommitdiffstats
path: root/util/folder/dirut.cpp
diff options
context:
space:
mode:
authorkakabba <kakabba@yandex-team.ru>2022-02-10 16:46:04 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:04 +0300
commit9c914f41ba5e9f9365f404e892197553ac23809e (patch)
tree1a2c5ffcf89eb53ecd79dbc9bc0a195c27404d0c /util/folder/dirut.cpp
parentc8e3995898c443e78266f7420aac5fb3da15d413 (diff)
downloadydb-9c914f41ba5e9f9365f404e892197553ac23809e.tar.gz
Restoring authorship annotation for <kakabba@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/folder/dirut.cpp')
-rw-r--r--util/folder/dirut.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/util/folder/dirut.cpp b/util/folder/dirut.cpp
index 1c261c9dd7..ffc9b09f96 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;