Login  
Search All Forums
Dart Home | PowerTCP Zip Compression for .NET | Custom Development Reply | PowerTCP Zip Compression for .NET Topics | Forums   
AuthorForum: PowerTCP Zip Compression for .NET
Topic: Unable to Unzip empty folder present in ZIP file
csarode
Prashant.Shirke@infor.com

From: Pune, India
Posts: 17
Member Since: 03/27/13
posted March 27, 2013 1:27 AM

Hello Support,

We have upgraded our existing Dart.PowerTCP.Zip from 2.0.2.3 to 2.1.0.2.

We found that in previous version of DART i.e. in 2.0.2.3, if there are any empty folders are present in ZIP it gets unzipped successfully. Now with the latest version of DART i.e. 2.1.0.2 empty folders are get skipped while unzipping operation.

Can you please provide the details on this. We need this functionality for our product.

Thanks.

csarode
Prashant.Shirke@infor.com

From: Pune, India
Posts: 17
Member Since: 03/27/13
posted March 27, 2013 1:44 AM

We are using following code, This may help for your investigation -

public static void UnZipFolders(String InventoriesPath)
    {
      Archive objArchive = null;
      string[] strZipInventories = { "" };
      String strDestFolder = null;

      try
      {
        strZipInventories = System.IO.Directory.GetFiles(InventoriesPath, "*.zip");
        if (strZipInventories.Length > 0)
        {
          objArchive = new Archive();
          objArchive.PreservePath = true;
          objArchive.Overwrite = Overwrite.Always;
          objArchive.ExcludePattern = "";

          foreach (string strProductZip in strZipInventories)
          {
            strDestFolder = InventoriesPath + "\\" + Path.GetFileNameWithoutExtension(strProductZip);
            objArchive.QuickUnzip(strProductZip, strDestFolder);
          }
        }
        else
        {
          throw new Exception("No Compressed Inventories found.");
        }

      }
      catch (ZipException ex)
      {
        // log Error ex.Message       

        if (objArchive != null)
          objArchive.Abort();

        throw new Exception("Errpor in UnZipping. Please see the log for further details. ");
      }
      catch (Exception ex)
      {
        // log Error ex.Message       

        if (objArchive != null)
          objArchive.Abort();

        throw new Exception("Errpor in UnZipping. Please see the log for further details. ");
      }
    }

Mike Baldwin (Admin)



From: Rome, NY USA
Posts: 114
Member Since: 04/11/00

Extra Support Options
Custom Application Development

posted March 27, 2013 1:33 PM

Hello Prashant,

We have assigned this issue to a developer. We will reply within a day or 2 with our results. Thank you for using PowerTCP.
Mike Baldwin (Admin)



From: Rome, NY USA
Posts: 114
Member Since: 04/11/00

Extra Support Options
Custom Application Development

posted March 28, 2013 3:34 PM

Hello Prashant,

We have duplicated this issue and our sales department will be in contact with you to get you a hot fix. We are sorry this passed our previous testing and will update our product as soon as practical. Thank you for choosing Dart.
csarode
Prashant.Shirke@infor.com

From: Pune, India
Posts: 17
Member Since: 03/27/13
posted April 1, 2013 8:16 AM

Hi Mike,

thanks for the update. Till when we can expect Hotfix. This is needed on priority and based on this we will communicate to our customer.

Thanks,
csarode
Prashant.Shirke@infor.com

From: Pune, India
Posts: 17
Member Since: 03/27/13
posted April 2, 2013 11:36 AM

We are testing the patch.

Thanks.
csarode
Prashant.Shirke@infor.com

From: Pune, India
Posts: 17
Member Since: 03/27/13
posted April 5, 2013 11:45 AM

We have tested the patch and it is working fine.

So is this patch provided by your team is final one or there are any hotfix/new release going to provide us?

The reason I am asking because we need to provide patch for our product on this.

Thanks.
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted April 5, 2013 12:45 PM

The DLL you received is an official release build from us. You should continue using this DLL going forward.
csarode
Prashant.Shirke@infor.com

From: Pune, India
Posts: 17
Member Since: 03/27/13
posted April 8, 2013 9:14 AM

Thanks for the reply.

Now issue has been resolved and we are able to Unzip empty folders so you can close this case.

We will provide updates on another case soon i.e.
http://support.dart.com/postings?topicid=8501
Reply | PowerTCP Zip Compression for .NET Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX