未验证 提交 72421975 编写于 作者: O openharmony_ci 提交者: Gitee

!19510 zlib错误码及入参描述修改

Merge pull request !19510 from junyi233/myfeature
......@@ -235,7 +235,7 @@ decompressFile(inFile: string, outFile: string, options: Options, callback: Asyn
| 参数名 | 类型 | 必填 | 说明 |
| ----------------------- | ------------------- | ---- | ------------------------------------------------------------ |
| inFile | string | 是 | 指定的待解压缩文件的文件路径,路径必须为沙箱路径,沙箱路径可以通过context获取,可参考[FA模型](js-apis-inner-app-context.md)[Stage模型](js-apis-inner-application-context.md)。 |
| inFile | string | 是 | 指定的待解压缩文件的文件路径,文件后缀需要以.zip结尾。文件路径必须为沙箱路径,沙箱路径可以通过context获取,可参考[FA模型](js-apis-inner-app-context.md)[Stage模型](js-apis-inner-application-context.md)。 |
| outFile | string | 是 | 指定的解压后的文件夹路径,文件夹目录路径需要在系统中存在,不存在则会解压失败。路径必须为沙箱路径,沙箱路径可以通过context获取,具体方法可参考[application/context(Stage模型)](js-apis-inner-application-context.md)[app/context(FA模型)](js-apis-inner-app-context.md)。 |
| options | [Options](#options) | 是 | 解压的配置参数。 |
| AsyncCallback<**void**> | callback | 否 | 解压的回调函数。 |
......@@ -287,7 +287,7 @@ decompressFile(inFile: string, outFile: string, options: Options): Promise\<void
| 参数名 | 类型 | 必填 | 说明 |
| ------- | ------------------- | ---- | ------------------------------------------------------------ |
| inFile | string | 是 | 指定的待解压缩文件的文件路径,路径必须为沙箱路径,沙箱路径可以通过context获取,可参考[FA模型](js-apis-inner-app-context.md)[Stage模型](js-apis-inner-application-context.md)。 |
| inFile | string | 是 | 指定的待解压缩文件的文件路径,文件后缀需要以.zip结尾。文件路径必须为沙箱路径,沙箱路径可以通过context获取,可参考[FA模型](js-apis-inner-app-context.md)[Stage模型](js-apis-inner-application-context.md)。 |
| outFile | string | 是 | 指定的解压后的文件夹路径,文件夹目录路径需要在系统中存在,不存在则会解压失败。路径必须为沙箱路径,沙箱路径可以通过context获取,具体方法可参考[application/context(Stage模型)](js-apis-inner-application-context.md)[app/context(FA模型)](js-apis-inner-app-context.md)。 |
| options | [Options](#options) | 是 | 解压时的配置参数。 |
......
......@@ -21,7 +21,8 @@ The input source file is invalid.
**处理步骤**
1. 检查源文件是否存在。
2. 检查待压缩的文件路径是否存在,并且路径是否在正确的沙箱路径下。
2. 检查源文件的后缀是否为.zip。
3. 检查待压缩的文件路径是否存在,并且路径是否在正确的沙箱路径下。
## 900002 传入的目标文件错误
......@@ -61,5 +62,5 @@ The input source file is not ZIP format or damaged.
**处理步骤**
1. 检查源文件压缩格是否为ZIP格式。
1. 检查源文件压缩格是否为ZIP格式。
2. 检查源文件是否完整,如果是网络下载的,需要确保文件下载完成后再调用decompress接口。
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册