diff options
author | denplusplus <denplusplus@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 | addb3626ed629a8c7d9c8c30e87365b478a8c266 (patch) | |
tree | c0748b5dcbade83af788c0abfa89c0383d6b779c /util/folder/dirut.cpp | |
parent | 57c20d143e8a438cd76b9fdc3ca2e8ee3ac1f32a (diff) | |
download | ydb-addb3626ed629a8c7d9c8c30e87365b478a8c266.tar.gz |
Restoring authorship annotation for <denplusplus@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/folder/dirut.cpp')
-rw-r--r-- | util/folder/dirut.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/util/folder/dirut.cpp b/util/folder/dirut.cpp index c603c28dcc..ffc9b09f96 100644 --- a/util/folder/dirut.cpp +++ b/util/folder/dirut.cpp @@ -189,7 +189,7 @@ using disk_type = enum { dk_error = 8 }; -// root slash (if any) - part of disk +// root slash (if any) - part of disk template <typename T> static int skip_disk(T*& ptr) { int result = dk_noflags; @@ -240,7 +240,7 @@ int correctpath(char* cpath, const char* path) { *cptr = 0; // replace '/' by '\' int dk = skip_disk(cpath); - + if (dk == dk_error) return 0; @@ -366,15 +366,15 @@ bool resolvepath(TString& folder, const TString& home) { return false; } -#endif // !defined _win32_ - +#endif // !defined _win32_ + char GetDirectorySeparator() { - return LOCSLASH_C; -} - + return LOCSLASH_C; +} + const char* GetDirectorySeparatorS() { - return LOCSLASH_S; -} + return LOCSLASH_S; +} void RemoveDirWithContents(TString dirName) { SlashFolderLocal(dirName); |