FileSystemManager.readdir
JS
FileSystemManager.readdir(Object object)Reads the list of files in a directory
Parameters
- Object object: Input parameters. See the table below for details.
object properties:
| Property | Value Type | Required | Description |
|---|---|---|---|
| dirPath | string | Yes | Path of the directory to read |
| success | function | No | Callback for a successful call |
| fail | function | No | Callback for a failed call |
| complete | function | No | Callback for when the call ends |
Parameters of the success callback
- Object res: Returns information about the specified directory
res properties:
| Property | Value Type | Description |
|---|---|---|
| files | Array.<string> | Array of file names in the specified directory |
