| 660 | } |
| 661 | |
| 662 | TString StripFileComponent(const TString& fileName) { |
| 663 | TString dir = IsDir(fileName) ? fileName : GetDirName(fileName); |
| 664 | if (!dir.empty() && dir.back() != GetDirectorySeparator()) { |
| 665 | dir.append(GetDirectorySeparator()); |
| 666 | } |
| 667 | return dir; |
| 668 | } |
no test coverage detected