create_archive()
Usage
create_archive(archiveFileName, files[, CustomFileType])
Description
Creates an archive with the given file (and folder) nodes and saves that archive under the name given as the first parameter.
The third parameter CustomFileType
can be used if the schema defines a type inheriting from File
and we want the archive to be of that type.
Example
${create_archive("logs.zip", find("Folder", "name", "logs"))}
${{Structr.createArchive("logs.zip", Structr.find("Folder", "name", "logs"))}}