| 455 | } |
| 456 | |
| 457 | static void ListArchive(const TString& archive, bool cutSlash) { |
| 458 | TMappingReader mappingReader(archive); |
| 459 | const TArchiveReader& reader = mappingReader.Reader; |
| 460 | const size_t count = reader.Count(); |
| 461 | for (size_t i = 0; i < count; ++i) { |
| 462 | const TString key = reader.KeyByIndex(i); |
| 463 | TString fileName = key; |
| 464 | if (cutSlash) { |
| 465 | fileName = CutFirstSlash(key); |
| 466 | } |
| 467 | Cout << fileName << Endl; |
| 468 | } |
| 469 | } |
| 470 | |
| 471 | static void ListArchiveMd5(const TString& archive, bool cutSlash) { |
| 472 | TMappingReader mappingReader(archive); |
no test coverage detected