I can't seem to use mdAdd to add files to an existing zip. Here's the code:
QuaZip* zipFile = new QuaZip( entry );
qDebug()<<"zip opening was"<<<zipFile->open( QuaZip::mdAdd )<<<zipFile->getZipError();
QuaZipFile zFile( zipFile );
zFile.open( QIODevice::WriteOnly, QuaZipNewInfo( moduleName+".xml", moduleName+".xml" ));
QFile file( filename_xml );
file.open( QIODevice::ReadOnly );
zFile.write( file.readAll() );
With QuaZip::mdCreate, it works flawlessly. I've gone through the examples in the test suite, and it looks like I am using mdAdd correctly. I'm using windows 7, 64 bit.
Log in to post a comment.