Originally Posted by
maaroofmoideen
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
bool QuaZip::getCurrentFileInfo ( QuaZipFileInfo * info ) const
To copy to clipboard, switch view to plain text mode
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
QList< QuaZipFileInfo > QuaZip::getFileInfoList ( ) const
To copy to clipboard, switch view to plain text mode
Returns information list about all files inside the archive.
use this for more info http://quazip.sourceforge.net/classQuaZip.html
Bookmarks