MCPcopy Create free account
hub / github.com/FreesmTeam/FreesmLauncher / collectPathsFromDir

Function collectPathsFromDir

launcher/minecraft/AssetsUtils.cpp:57–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55
56namespace {
57QSet<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
80namespace AssetsUtils {

Callers 1

reconstructAssetsFunction · 0.85

Calls 2

existsMethod · 0.80
insertMethod · 0.80

Tested by

no test coverage detected