OSL ‐ Zip Management - Mistium/Origin-OS GitHub Wiki
Archive opening
zip "new" "name"
// create an empty archive
zip "open" "URL/base64/hex/binary/string" "data" "name"
// open an existing archive
Archive management
zip "switch" "name"
// move to another archive
zip "remove"
// deletes the currently open archive
After opening an archive
zip "write" "filename.type" "data"
// write to a file in the current directory
zip "read" "filename.type"
log data
// read a file in the current directory
zip "list" "directory"
log data
// lists the current files in the directory as an array in the data variable
zip "rename" "filename.type" "new filename.type"
// rename a file in the current directory
zip "copy" "filename.type" "new filename.type"
// basically just duplicate file
zip "delete" "filename.type"
// delete a file in the current directory
zip "new_directory" "name"
// create a directory
Exporting an archive
zip "export"
log data
// returns the zip data as a data:// uri into the `data` variable