PDA

View Full Version : how to check one folder is exist or not in a zip file using quazip



maaroofmoideen
23rd May 2013, 07:15
hi,

how to check one folder is exist or not in a zip file using quazip

thanks

saman_artorious
23rd May 2013, 07:37
hi,

how to check one folder is exist or not in a zip file using quazip

thanks

get a pointer to the file descriptor and check if it is a directory. You need to use:


bool QuaZip::getCurrentFileInfo ( QuaZipFileInfo * info ) const
Retrieves information about the current file.
Fills the structure pointed by info. Returns true on success, false otherwise. In the latter case structure pointed by info remains untouched. If there was an error, getZipError() returns error code.


QList< QuaZipFileInfo > QuaZip::getFileInfoList ( ) const
Returns information list about all files inside the archive.

use this for more info http://quazip.sourceforge.net/classQuaZip.html

maaroofmoideen
23rd May 2013, 08:02
Hi,

that is not getting anybody can put sample code for this
I want to check "META-INF" folder is exist or not in a zip file using QuaZip

thanks

Hi,
that is not getting anybody can put sample code for this
I want to check "META-INF" folder is exist or not in a zip file using QuaZip

thanks

saman_artorious
23rd May 2013, 08:20
Hi,
that is not getting
if you already tried, you may paste what you have written so far.