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

Method compressDirFiles

launcher/MMCZip.cpp:97–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95}
96
97bool MMCZip::compressDirFiles(QuaZip *zip, QString dir, QFileInfoList files)
98{
99 QDir directory(dir);
100 if (!directory.exists()) return false;
101
102 for (auto e : files) {
103 auto filePath = directory.relativeFilePath(e.absoluteFilePath());
104 if( !JlCompress::compressFile(zip, e.absoluteFilePath(), filePath)) return false;
105 }
106
107 return true;
108}
109
110bool MMCZip::compressDirFiles(QString fileCompressed, QString dir, QFileInfoList files)
111{

Callers

nothing calls this directly

Calls 3

existsMethod · 0.80
openMethod · 0.80
QDirClass · 0.70

Tested by

no test coverage detected