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

Function writeFilePath

src/FileEntry.h:315–331  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

313// N is the number of files in iterator range [first, last) minus 1.
314template <typename InputIterator>
315void writeFilePath(InputIterator first, InputIterator last, std::ostream& o,
316 bool memory)
317{
318 std::shared_ptr<FileEntry> e = getFirstRequestedFileEntry(first, last);
319 if (!e) {
320 o << "n/a";
321 }
322 else {
323 writeFilePath(o, e, memory);
324 if (!e->getPath().empty()) {
325 size_t count = countRequestedFileEntry(first, last);
326 if (count > 1) {
327 o << " (" << count - 1 << "more)";
328 }
329 }
330 }
331}
332
333} // namespace aria2
334

Callers 3

operator()Method · 0.70
formatDownloadResultMethod · 0.70

Calls 4

countRequestedFileEntryFunction · 0.85
getPathMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected