Home Forums .NET libraries Xceed Zip & Real-Time Zip for .NET How to unzip without recreating folder structure

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #20335 |

    This seems like it should be easy, but I haven’t figured it out yet: I have zipfiles created with folder information. I need to unzip the archive without recreating the folder structure. Is this possible?

    Imported from legacy forums. Posted by Jim (had 1278 views)

    Xceed Support
    Member
    Post count: 5658

    Hi Jim,

    Using the QuickZip class, in the method Unzip(), you can Set the Parameter preservePaths to true: 

    QuickZip.Unzip(zipFileName, destinationFolder, replaceExistingFiles, recursive, preservePaths (TRUE), filesToUnzip);

    Documentation:

    http://doc.xceedsoft.com/products/XceedFileSystem/#topic7301.html

     

    Imported from legacy forums. Posted by Alain [Xceed] (had 1400 views)

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.