| 313 | // N is the number of files in iterator range [first, last) minus 1. |
| 314 | template <typename InputIterator> |
| 315 | void 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 |
no test coverage detected