MCPcopy Create free account
hub / github.com/Palm1r/QodeAssist / collectMarkdownFiles

Method collectMarkdownFiles

pluginllmcore/RulesLoader.cpp:146–164  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

144}
145
146QVector<RuleFileInfo> RulesLoader::collectMarkdownFiles(
147 const QString &dirPath, const QString &category)
148{
149 QVector<RuleFileInfo> result;
150 QDir dir(dirPath);
151
152 if (!dir.exists()) {
153 return result;
154 }
155
156 QStringList mdFiles = dir.entryList({"*.md"}, QDir::Files, QDir::Name);
157
158 for (const QString &fileName : mdFiles) {
159 QString fullPath = dir.filePath(fileName);
160 result.append({fullPath, fileName, category});
161 }
162
163 return result;
164}
165
166} // namespace QodeAssist::PluginLLMCore

Callers

nothing calls this directly

Calls 2

appendMethod · 0.80
filePathMethod · 0.45

Tested by

no test coverage detected