| 12 | #include <util/system/yassert.h> |
| 13 | |
| 14 | void SlashFolderLocal(TString& folder) { |
| 15 | if (!folder) { |
| 16 | return; |
| 17 | } |
| 18 | #ifdef _win32_ |
| 19 | size_t pos; |
| 20 | while ((pos = folder.find('/')) != TString::npos) { |
| 21 | folder.replace(pos, 1, LOCSLASH_S); |
| 22 | } |
| 23 | #endif |
| 24 | if (folder[folder.size() - 1] != LOCSLASH_C) { |
| 25 | folder.append(LOCSLASH_S); |
| 26 | } |
| 27 | } |
| 28 | |
| 29 | #ifndef _win32_ |
| 30 |
no test coverage detected