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.
uapi --output=jsonpretty \ --user=username \ Restore \ directory_listing \ path='/public_html/'
{- "apiversion": 3,
- "func": "directory_listing",
- "module": "Restore",
- "result": {- "data": [- {- "conflict": 0,
- "exists": 1,
- "name": "public_html",
- "onDiskType": "file",
- "type": "file"
 }
 ],
- "errors": null,
- "messages": null,
- "metadata": {- "transformed": 1
 },
- "status": 1,
- "warnings": null
 }
}