🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
# .unzip ### FileSystemManager.unzip(Object object) 解压文件 #### 参数 ##### Object object 属性类型默认值是否必填说明支持版本zipFilePathstring是源文件路径,只可以是 zip 压缩文件targetPathstring是目标目录路径successfunction否接口调用成功的回调函数failfunction否接口调用失败的回调函数completefunction否接口调用结束的回调函数(调用成功、失败都会执行)###### object.fail 回调函数 **参数** **Object res** 属性类型说明支持版本errMsgstring错误信息**res.errMsg 的合法值** 值说明fail permission denied, unzip ${zipFilePath} -> ${destPath}指定目标文件路径没有写权限fail no such file or directory, unzip ${zipFilePath} -> "${destPath}源文件不存在,或目标文件路径的上层目录不存在> 原文: <https://developers.weixin.qq.com/minigame/dev/api/file/FileSystemManager.unzip.html>