| 55 | |
| 56 | namespace { |
| 57 | QSet<QString> collectPathsFromDir(QString dirPath) |
| 58 | { |
| 59 | QFileInfo dirInfo(dirPath); |
| 60 | |
| 61 | if (!dirInfo.exists()) { |
| 62 | return {}; |
| 63 | } |
| 64 | |
| 65 | QSet<QString> out; |
| 66 | |
| 67 | QDirIterator iter(dirPath, QDirIterator::Subdirectories); |
| 68 | while (iter.hasNext()) { |
| 69 | QString value = iter.next(); |
| 70 | QFileInfo info(value); |
| 71 | if (info.isFile()) { |
| 72 | out.insert(value); |
| 73 | qDebug() << value; |
| 74 | } |
| 75 | } |
| 76 | return out; |
| 77 | } |
| 78 | } // namespace |
| 79 | |
| 80 | namespace AssetsUtils { |
no test coverage detected