diff options
author | ivanmorozov <ivanmorozov@yandex-team.ru> | 2022-02-10 16:47:34 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:47:34 +0300 |
commit | 464ba3814a83db4f2d5327393b0b6eaf0c86bfd7 (patch) | |
tree | c0748b5dcbade83af788c0abfa89c0383d6b779c /util/folder/dirut.cpp | |
parent | cba5d9a444e2cfe105f55ccda66cd21d50440017 (diff) | |
download | ydb-464ba3814a83db4f2d5327393b0b6eaf0c86bfd7.tar.gz |
Restoring authorship annotation for <ivanmorozov@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/folder/dirut.cpp')
-rw-r--r-- | util/folder/dirut.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/util/folder/dirut.cpp b/util/folder/dirut.cpp index 52606b3846..ffc9b09f96 100644 --- a/util/folder/dirut.cpp +++ b/util/folder/dirut.cpp @@ -17,7 +17,7 @@ void SlashFolderLocal(TString& folder) { #ifdef _win32_ size_t pos; while ((pos = folder.find('/')) != TString::npos) - folder.replace(pos, 1, LOCSLASH_S); + folder.replace(pos, 1, LOCSLASH_S); #endif if (folder[folder.size() - 1] != LOCSLASH_C) folder.append(LOCSLASH_S); @@ -506,7 +506,7 @@ const char* GetFileNameComponent(const char* f) { } TString GetSystemTempDir() { -#ifdef _win_ +#ifdef _win_ char buffer[1024]; DWORD size = GetTempPath(1024, buffer); if (!size) { @@ -527,14 +527,14 @@ TString ResolveDir(const char* path) { } bool SafeResolveDir(const char* path, TString& result) { - try { - result = ResolvePath(path, true); - return true; - } catch (...) { - return false; - } -} - + try { + result = ResolvePath(path, true); + return true; + } catch (...) { + return false; + } +} + TString GetDirName(const TString& path) { return TFsPath(path).Dirname(); } |