PDA

View Full Version : Exclude Folders from Zipping


Hess_Joel
01-15-2010, 01:00 PM
I'm trying to use the Zip Files action to recursively add files and folders to a zip file, but I don't want it to include the .svn folders that are scattered about.

I've tried tried a number of different variations on the exclude properties and can't get it to ignore them.

here's an example of the directory structure.

--HardDisk
|_.svn
|_Folder1
|_Folder2
|_.svn
|_sub1
|_sub2

kinook
01-15-2010, 02:10 PM
For directory exclusion in the ZIP Files action, the mask must include the directory path as it would appear in the zip file after the zip operation concludes (i.e., /_Folder2/.svn, etc.).

Also, the 3rd party ZIP component used by the ZIP Files action appears to have problems excluding folder names containing dots.

You could use the Copy Files action to copy the desired files to a temp folder (since it doesn't have the above limitations) and then ZIP that folder without exclusions.

Another option might be to use the 7-Zip action.
http://www.kinook.com/VisBuildPro/Manual/7zip.htm

kinook
02-22-2012, 01:34 PM
This is supported in the Enhanced ZIP Files action in v8.0.