Zip - Create a Zip File
point = Zip ( opttag ... ) |
point | The returned pointed is the result of invoking the remote procedure. | |
opttag | Any of the tags defined below. |
Create::file | Creates an empty zipfile called file. | |
Data::file | Appends the file to the named (or current) zip file. The data is considered to be binary. | |
Id::name | An optional internal identifier for this zip file if multiple files are opened simultaneously. | |
Name::file | The file to be given to the Data/Text file being appended. If not specified then the inserted file's actual name is used. | |
Open::file | Opens an existing zip file | |
Text::file | Appends the file to the named (or current) zip file. The data is considered to be text. |
Close? | Close off the name/current zip file. | |
ListOf? | Returns the contents of an opened zip file as a list of lists. Each file within the zip is represented as a 4-element list: (Alpha:file Num:size UDT:update-datetime Num:compressed-size) |
This module is used to create zip files.
Zip(Create::"demo.zip") | creates an empty zip file | |
Zip(Text::fileName* Name::Str(List.3 OSFile(fileName* FileName?))) | Adds the file referenced by fileName* to the current zip file with that file's name (minus any device/path information) | |
Zip(Data::"data.bin" | Name::"binarydata1.bin") | |
Zip(Close?) | Closes off the current zip file | |
Zip(Close? Id::foo) | Closes off the named zip file |