minigame-std
Version:
Mini Game Standard Development Library.
29 lines (17 loc) • 638 B
Markdown
[**minigame-std**](../../../README.md)
***
[minigame-std](../../../README.md) / [fs](../README.md) / copy
# Function: copy()
```ts
function copy(srcPath, destPath): AsyncVoidIOResult
```
Defined in: [src/std/fs/fs\_async.ts:178](https://github.com/JiangJie/minigame-std/blob/fdb22241c47c2e98329a4c62befde728957e03ee/src/std/fs/fs_async.ts#L178)
复制文件或文件夹。
## Parameters
| Parameter | Type | Description |
| ------ | ------ | ------ |
| `srcPath` | `string` | 源文件或文件夹路径。 |
| `destPath` | `string` | 目标文件或文件夹路径。 |
## Returns
`AsyncVoidIOResult`
操作的异步结果。