ReadDir
Read all files in a directory.
API
Return
- Promise
| Parameter | Description | Type | Description |
|---|---|---|---|
| result | Array of all files in directory | array |
Array of file paths |
Options
| Parameter | Description | Type | Default |
|---|---|---|---|
| options | { dirPath } | object |
Required |
| dirPath | Directory path | string |
Required |