my.getSavedFileList retrieves information about all files that have been saved locally using my.saveFile.
my.getSavedFileList({
success: (res) => {
console.log(JSON.stringify(res));
}
});
Object type with the following attributes:
| Property | Type | Required | Description |
|---|---|---|---|
success | Function | No | Callback function upon call success. |
fail | Function | No | Callback function upon call failure. |
complete | Function | No | Callback function upon call completion (to be executed upon either call success or failure). |
The incoming parameter is of the Object type with the following attributes:
| Property | Type | Description |
|---|---|---|
fileList | List | File list. |
Each file object in the list contains:
| Property | Type | Description |
|---|---|---|
size | Number | File size. |
createTime | Number | Created time. |
apFilePath | String | File path. |
my.saveFile