# BatchReadFileResult

Result for a single file in a batch read.

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

## Fields

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

| Field | Type | Description |
|---|---|---|
| `path` | `string` | Path to the file. |
| `success` | `boolean` | Whether the read succeeded. |
| `error` | `string \| null` | Error message if failed. |
| `content` | `string \| null` | File content (text). |
| `totalLines` | `integer` | Total lines in file (before truncation). |
| `truncated` | `boolean` | Whether content was cut short by `maxLinesPerFile`. |

## Example

```json
{
  "path": "...",
  "success": false,
  "error": "...",
  "content": "...",
  "totalLines": 0,
  "truncated": false
}
```

## Where it's used

- Inside [`BatchReadResponse`](https://docs.maitento.com/reference/types/batch-read-response.md)
