FileSystemManager.getFileInfo
JS
FileSystemManager.getFileInfo(Object object)Gets the file information of a local temporary file or a local user file
Parameters
- Object object: Input parameters. See the table below for details.
object properties:
| Property | Value Type | Required | Description |
|---|---|---|---|
| filePath | string | Yes | Path of the file to read |
| success | function | No | Callback for a successful call. See the table below for details. |
| 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 file information
res properties:
| Property | Value Type | Description |
|---|---|---|
| size | number | File size, in bytes |
