List website files and directories
List files and directories under a website's document root.
Use directory to browse a subdirectory relative to the document root. Symlinked entries are listed but never traversed into or resolved.
Path parameters
Domain name
Query parameters
Directory path to check
How many directory levels deep to recurse.
Max number of entries to return in this page.
Number of entries to skip. Page with offset + item count until reaching total_items.
Filter by entry type, e.g. file,directory. Omit for all types.
[ "file", "directory" ]
Response
Success response
Example response
{
"path": "wp-content",
"items": [
{
"name": "index.php",
"path": "wp-content/index.php",
"type": "file",
"size_bytes": 512
}
],
"total_items": 42,
"total_items_current_page": 20
}Changes
Changed in 2 of the 89 revisions of this API.21
- ▲
queryrequest parameterfile_typeslist-of-types was narrowed by removing typesstringrequest-parameter-list-of-types-narrowed
- ▲
for the
queryrequest parameterfile_types, the type/format was changed from/toarray/request-parameter-type-changed
- ▲
- ○
endpoint added
endpoint-added
- ○