# list_files

> Lists the folders and files under a folder, only what you may read.

## Parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `path` | string | no | A folder, for example `context` or `context/clients`. The default is `context`. |

## Returns

The subfolders (with a trailing slash) and the files under that folder that the person may read.

## Example

```json
{
  "name": "list_files",
  "arguments": { "path": "context/clients" }
}
```

## Good to know

- Start at `context`. The folder `general` can be read by every member, and `raw` only by the person it belongs to and by the admins.
- A folder that is empty, does not exist or is not allowed gives the same message.
- Related: [The folders](https://enterpriseego.cafeboon.com/docs/concepts/folders), [read_file](https://enterpriseego.cafeboon.com/docs/reference/read-file).
