This function returns the directory indexing settings of the subdirectories in a directory.
uapi --output=jsonpretty \ --user=username \ DirectoryIndexes \ list_directories \ dir='/home/example/example.com'
{- "apiversion": 3,
- "func": "list_directories",
- "module": "DirectoryIndexes",
- "result": {
- "data": {
- "children": [
- {
- "path": "/home/example/example.com/cgi-bin",
- "state": {
- "index_type": "inherit"
}
}
], - "current": {
- "path": "/home/example/example.com",
- "state": {
- "index_type": "inherit"
}
}, - "home": {
- "path": "/home/example",
- "state": {
- "index_type": "inherit"
}
}, - "parent": {
- "path": "/home/example",
- "state": {
- "index_type": "inherit"
}
}
}, - "errors": null,
- "messages": null,
- "metadata": { },
- "status": 1,
- "warnings": null
}
}