# TreeEntry

A flat entry in the tree (alternative to nested structure).

**Kind:** an object, used in responses.

## Fields

Every field is present in a response; empty ones are `null`.

| Field | Type | Description |
|---|---|---|
| `path` | `string` | Full path within the file system. |
| `type` | `string` | Entry type: "file" or "directory". |
| `depth` | `integer` | Depth from root (0 = root). |
| `size` | `integer` | File size (0 for directories). |

## Example

```json
{
  "path": "...",
  "type": "...",
  "depth": 0,
  "size": 0
}
```

## Where it's used

- Inside [`TreeResponse`](https://docs.maitento.com/reference/types/tree-response.md)
