MCPcopy Create free account
hub / github.com/aethersdr/AetherSDR / writeSupportBundleZip

Function writeSupportBundleZip

src/core/SupportBundle.cpp:40–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38}
39
40bool writeSupportBundleZip(const QString& sourceDir, const QString& archivePath)
41{
42 const QList<ZipEntryData> entries = collectSupportBundleEntries(sourceDir);
43 if (entries.isEmpty())
44 return false;
45
46 // Deflate: support bundles are log-dominated and compress ~5-10x (#3218).
47 const QByteArray zip = writeDeflatedZip(entries);
48 if (zip.isEmpty())
49 return false;
50
51 QSaveFile archive(archivePath);
52 if (!archive.open(QIODevice::WriteOnly))
53 return false;
54 if (archive.write(zip) != zip.size())
55 return false;
56 return archive.commit();
57}
58
59} // namespace
60

Callers 1

createBundleMethod · 0.85

Calls 7

writeDeflatedZipFunction · 0.85
isEmptyMethod · 0.45
openMethod · 0.45
writeMethod · 0.45
sizeMethod · 0.45
commitMethod · 0.45

Tested by

no test coverage detected