Results 1 to 4 of 4

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

  1. #1
    Join Date
    Mar 2013
    Posts
    8
    Qt products
    Qt4
    Platforms
    Windows

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

    hi,

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

    thanks

  2. #2
    Join Date
    Feb 2012
    Location
    Armenia/Yerevan
    Posts
    400
    Thanks
    15
    Thanked 16 Times in 15 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11

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

    Quote Originally Posted by maaroofmoideen View Post
    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:

    Qt Code:
    1. 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.

    Qt Code:
    1. 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

  3. #3
    Join Date
    Mar 2013
    Posts
    8
    Qt products
    Qt4
    Platforms
    Windows

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

    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

  4. #4
    Join Date
    Feb 2012
    Location
    Armenia/Yerevan
    Posts
    400
    Thanks
    15
    Thanked 16 Times in 15 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11

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

    Quote Originally Posted by maaroofmoideen View Post
    Hi,
    that is not getting
    if you already tried, you may paste what you have written so far.

  5. The following user says thank you to saman_artorious for this useful post:


Similar Threads

  1. Replies: 1
    Last Post: 2nd October 2010, 22:11
  2. How to check Table already exist or not
    By damodharan in forum Qt Programming
    Replies: 3
    Last Post: 27th May 2010, 13:06
  3. How to check if g++ exist in system.
    By sawerset in forum Newbie
    Replies: 2
    Last Post: 1st December 2008, 09:58
  4. Replies: 3
    Last Post: 11th September 2008, 20:08
  5. [Solved] QuaZIP and getting a file out of an archiv
    By Lykurg in forum Qt Programming
    Replies: 0
    Last Post: 6th March 2008, 07:44

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.