File Restoration
Return backups in home directory
This function lists all of the backup files and directories in the user's home directory.
Important:
When you disable the File Storage role, the system disables this function.
get/Restore/directory_listing
Query parameters
pathstring required
Example:/public_html/
A path to a subdirectory within the user's home directory, or any level below it.
Note:
The value of this parameter must begin and end with a forward slash (/) for security purposes.
Response
HTTP Request was successful.
Example response
{
"apiversion": 3,
"func": "directory_listing",
"module": "Restore",
"result": {
"data": [
{
"exists": 1,
"name": "public_html",
"onDiskType": "file",
"type": "file"
}
],
"metadata": {
"transformed": 1
},
"status": 1
}
}