UNPKG

minigame-std

Version:

Mini Game Standard Development Library.

33 lines (21 loc) 842 B
[**minigame-std**](../../../README.md) *** [minigame-std](../../../README.md) / [fs](../README.md) / unzipFromUrl # Function: unzipFromUrl() ```ts function unzipFromUrl( zipFileUrl, targetPath, options?): AsyncVoidIOResult ``` Defined in: [src/std/fs/fs\_async.ts:273](https://github.com/JiangJie/minigame-std/blob/ff3594872b1efbdbc13aabe99588385e855b50dc/src/std/fs/fs_async.ts#L273) 从网络下载 zip 文件并解压。 ## Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `zipFileUrl` | `string` | Zip 文件的网络地址。 | | `targetPath` | `string` | 要解压到的目标文件夹路径。 | | `options`? | [`UnionDownloadFileOptions`](../type-aliases/UnionDownloadFileOptions.md) | 可选的下载参数。 | ## Returns `AsyncVoidIOResult` 下载并解压操作的异步结果。