UNPKG

minigame-std

Version:

Mini Game Standard Development Library.

31 lines (18 loc) 641 B
[**minigame-std**](../../../README.md) *** [minigame-std](../../../README.md) / [fs](../README.md) / copy # Function: copy() ```ts function copy(srcPath, destPath): AsyncVoidIOResult ``` 复制文件或文件夹。 ## Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `srcPath` | `string` | 源文件或文件夹路径。 | | `destPath` | `string` | 目标文件或文件夹路径。 | ## Returns `AsyncVoidIOResult` 操作的异步结果。 ## Defined in [src/std/fs/fs\_async.ts:178](https://github.com/JiangJie/minigame-std/blob/8633d80114dee6c79033ec094d8233bd8263bedc/src/std/fs/fs_async.ts#L178)