|
#1
|
|||
|
|||
Exclude Folders from Zipping
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 |
#2
|
|||
|
|||
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 |
#3
|
|||
|
|||
This is supported in the Enhanced ZIP Files action in v8.0.
|
|
|