MCPcopy Create free account
hub / github.com/catboost/catboost / ListArchive

Function ListArchive

tools/archiver/main.cpp:457–469  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

455}
456
457static 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
471static void ListArchiveMd5(const TString& archive, bool cutSlash) {
472 TMappingReader mappingReader(archive);

Callers 1

mainFunction · 0.85

Calls 3

CutFirstSlashFunction · 0.85
CountMethod · 0.45
KeyByIndexMethod · 0.45

Tested by

no test coverage detected