MCPcopy Create free account
hub / github.com/PolyMC/PolyMC / collectPathsFromDir

Function collectPathsFromDir

launcher/minecraft/AssetsUtils.cpp:55–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

reconstructAssetsFunction · 0.85

Calls 3

existsMethod · 0.80
nextMethod · 0.80
insertMethod · 0.80

Tested by

no test coverage detected