aardio 文档

ZIP 归档校验下载

zlib.httpFile.verifiedZip.extract(url, sha256, extractDir, options) 是调用者明确需要SHA256校验时的可选工具。普通下载继续使用 zlib.httpFile.download,无须迁移到本入口。

import zlib.httpFile.verifiedZip;
var r,err,kind=zlib.httpFile.verifiedZip.extract(
    "https://example.com/tool.zip",string.repeat(64,"0"),"/stage-new",{
        archivePath="/cache/tool.zip";
        rootName="tool";
    });
return {result=r;error=err;kind=kind};

示例URL/hash是占位值。真实调用者自行提供所需摘要。

面向可信产品归档,不是任意不可信ZIP的沙箱;不还原权限、链接或时间属性。

Markdown 格式