MCPcopy Create free account
hub / github.com/YACReader/yacreader / findValidComicFiles

Method findValidComicFiles

common/comic.cpp:304–319  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

302}
303
304QList<QString> Comic::findValidComicFiles(const QList<QUrl> &list)
305{
306 QLOG_DEBUG() << "-findValidComicFiles-";
307 QList<QString> validComicFiles;
308 QString currentPath;
309 for (const QUrl &url : std::as_const(list)) {
310 currentPath = url.toLocalFile();
311 if (Comic::fileIsComic(currentPath)) {
312 validComicFiles << currentPath;
313 } else if (QFileInfo(currentPath).isDir()) {
314 validComicFiles << findValidComicFilesInFolder(currentPath);
315 }
316 }
317 QLOG_DEBUG() << "-" << validComicFiles << "-";
318 return validComicFiles;
319}
320
321QList<QString> Comic::findValidComicFilesInFolder(const QString &path)
322{

Callers

nothing calls this directly

Calls 1

isDirMethod · 0.45

Tested by

no test coverage detected