list content of zip-archive
{mpf:zip=list||archive=E:/test.zip}
{mpf:loop={mpf:zip/count}}
... {mpf:zip/name/{mpf:var/key}} ...
... {mpf:zip/size/{mpf:var/key}} ...
... {mpf:zip/compressed/{mpf:var/key}} ...
{/mpf:loop={mpf:zip/count}}
unpack a complete zip-archive
{mpf:zip=unpack||archive=E:/test.zip||saveas=E:/test/}
extract content of a specific file from zip-archive
extract to display:
{mpf:zip=E:/test.zip||file=test.txt}
extract and save as file:
{mpf:zip=E:/test.zip||file=test.txt||saveas=D:/test.txt}
extract file from archive-string (for use with closing token only):
{mpf:zip=E:/test.zip||file=test.txt}
... zip archive binary code ...
{/mpf:zip=E:/test.zip||file=test.txt}
create a zip-archive
create to send (attachment headers must be set):
{mpf:zip=create||file=E:/german.xml||file=E:/hinweis.txt}
create and save as file:
{mpf:zip=create||file=E:/german.xml||file=E:/hinweis.txt||saveas=D:/test.zip}
if you want file paths not to be included in archive:
{mpf:zip=create||file=E:/german.xml||nopath}
|