Home › Forums › .NET libraries › Xceed Zip & Real-Time Zip for .NET › exclude folder from unzip
Hi I have zip file contains sub folders.
I want to unzip the file exclude specific folder. I define NotFilter with scope of folder but the folder unzipped what wrong with my solution.
Imported from legacy forums. Posted by nadav (had 1589 views)
When unzipping, you must specify the path of the file/folder within the archive, not on disk :
XceedZip1.FilesToProcess = “\Test\*”XceedZip1.FilesToExclude = “\Test\1\*”
This will work only if your archive contains paths, that is, the PreservePath property was set to true when first making the archive.
Imported from legacy forums. Posted by Alain [Xceed] (had 1340 views)