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

Method loadContentFromStorage

ChatView/ChatSerializer.cpp:306–321  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

304}
305
306QString ChatSerializer::loadContentFromStorage(const QString &chatFilePath, const QString &storedPath)
307{
308 QString contentFolder = getChatContentFolder(chatFilePath);
309 QString fullPath = QDir(contentFolder).filePath(storedPath);
310
311 QFile file(fullPath);
312 if (!file.open(QIODevice::ReadOnly)) {
313 LOG_MESSAGE(QString("Failed to open content file: %1").arg(fullPath));
314 return QString();
315 }
316
317 QByteArray contentData = file.readAll();
318 file.close();
319
320 return contentData.toBase64();
321}
322
323} // namespace QodeAssist::Chat

Callers

nothing calls this directly

Calls 1

filePathMethod · 0.45

Tested by

no test coverage detected