Advanced Customizations, Overrides, and Extensions » ePublisher Platform XSLT Extensions » ZipExtension » void ZipDirectory (string zipFilePath, string directoryPath)
void ZipDirectory (string zipFilePath, string directoryPath)
 
Zip a directory and recursively include sub-directories without compressing any files.
Parameters:
zipFilePath
Full pathname of the zip file.
directoryPath
Full pathname of the directory.
Creates zip archive C:.zip with the directory and and subdirectories of 'C:\ projects'.
<xsl:variable name="VarZipDirectory" select="wwzip:ZipDirectory('C:\some\archive.zip', 'C:\projects\myproject'" />
Was this helpful?
Last modified date: 10/14/2020