minigame-std
Version:
Mini Game Standard Development Library.
28 lines (16 loc) • 611 B
Markdown
[**minigame-std**](../../../README.md)
***
[minigame-std](../../../README.md) / [fs](../README.md) / emptyDir
# Function: emptyDir()
```ts
function emptyDir(dirPath): AsyncVoidIOResult
```
Defined in: [src/std/fs/fs\_async.ts:196](https://github.com/JiangJie/minigame-std/blob/fdb22241c47c2e98329a4c62befde728957e03ee/src/std/fs/fs_async.ts#L196)
清空指定目录下的所有文件和子目录。
## Parameters
| Parameter | Type | Description |
| ------ | ------ | ------ |
| `dirPath` | `string` | 目录路径。 |
## Returns
`AsyncVoidIOResult`
清空成功返回 true 的异步操作结果。