> For the complete documentation index, see [llms.txt](https://docs.hostinger.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.hostinger.com/api-reference/endpoints/hosting/files/list-website-files-and-directories.md).

# 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.

{% openapi src="<https://developers.hostinger.com/openapi/openapi.json>" path="/api/hosting/v1/accounts/{username}/domains/{domain}/files" method="get" %}
<https://developers.hostinger.com/openapi/openapi.json>
{% endopenapi %}
