This function reports the first file's URI, relative to the cPanel base directory.
uapi --output=jsonpretty \ --user=username \ Parser \ firstfile_relative_uri
{- "apiversion": 3,
- "func": "firstfile_relative_uri",
- "module": "Parser",
- "result": {
- "data": {
- "uri": "/usr/local/cpanel/base/favicon.ico"
}, - "errors": null,
- "messages": null,
- "metadata": { },
- "status": 1,
- "warnings": null
}
}