MCPcopy Create free account
hub / github.com/aria2/aria2 / getFirstFilePath

Method getFirstFilePath

src/RequestGroup.cc:885–893  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

883}
884
885std::string RequestGroup::getFirstFilePath() const
886{
887 assert(downloadContext_);
888 if (inMemoryDownload()) {
889 return "[MEMORY]" +
890 File(downloadContext_->getFirstFileEntry()->getPath()).getBasename();
891 }
892 return downloadContext_->getFirstFileEntry()->getPath();
893}
894
895int64_t RequestGroup::getTotalLength() const
896{

Callers 15

testGetFirstFilePathMethod · 0.80
testResolve_loadErrorMethod · 0.80
testAddTorrentMethod · 0.80
testAddMetalinkMethod · 0.80
executeInternalMethod · 0.80
handleDefaultEncodingMethod · 0.80
handleOtherEncodingMethod · 0.80
matchMethod · 0.80

Calls 3

FileClass · 0.85
getPathMethod · 0.80
getBasenameMethod · 0.45

Tested by 8

testGetFirstFilePathMethod · 0.64
testResolve_loadErrorMethod · 0.64
testAddTorrentMethod · 0.64
testAddMetalinkMethod · 0.64