DorkOS
ApiDirectory

Browse directories

GET
/api/directory

Browse directories on the server filesystem. Restricted to the home directory for security.

Query Parameters

path?string
Length1 <= length
showHidden?|
Defaultfalse

Response Body

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/api/directory"
{  "path": "string",  "entries": [    {      "name": "string",      "path": "string",      "isDirectory": true    }  ],  "parent": "string"}
{  "error": "string",  "details": null}
{  "error": "string",  "details": null}
{  "error": "string",  "details": null}