UNPKG

minigame-std

Version:

Mini Game Standard Development Library.

26 lines (15 loc) 508 B
[**minigame-std**](../../../README.md) *** [minigame-std](../../../README.md) / [fs](../README.md) / readDirSync # Function: readDirSync() ```ts function readDirSync(dirPath): IOResult<string[]> ``` Defined in: [src/std/fs/fs\_sync.ts:58](https://github.com/JiangJie/minigame-std/blob/fdb22241c47c2e98329a4c62befde728957e03ee/src/std/fs/fs_sync.ts#L58) `readDir` 的同步版本。 ## Parameters | Parameter | Type | | ------ | ------ | | `dirPath` | `string` | ## Returns `IOResult`\<`string`[]\>