Capy-Bearer Documentation

zip_list

host call

Capy

function zip_list(path : string) dval

Description

zip_list() returns ZIP archive metadata and entries.

Parameters

path : archive path

Return Values

A dval with archive metadata and entries.

Example

Capy

var archive := file_temp("/tmp/capy-zip-") + ".zip"
zip_create(archive, dval({"note.txt": "hello"}))
var listing := zip_list(archive)
print(s32(listing["count"]), "\n")
file_unlink(archive)