minigame-std
Version:
Mini Game Standard Development Library.
31 lines (18 loc) • 630 B
Markdown
[**minigame-std**](../../../README.md)
***
[minigame-std](../../../README.md) / [fs](../README.md) / move
# Function: move()
```ts
function move(srcPath, destPath): AsyncVoidIOResult
```
重命名文件或目录。
## Parameters
| Parameter | Type | Description |
| ------ | ------ | ------ |
| `srcPath` | `string` | 原始路径。 |
| `destPath` | `string` | 新路径。 |
## Returns
`AsyncVoidIOResult`
重命名成功返回 true 的异步操作结果。
## Defined in
[src/std/fs/fs\_async.ts:67](https://github.com/JiangJie/minigame-std/blob/8633d80114dee6c79033ec094d8233bd8263bedc/src/std/fs/fs_async.ts#L67)