# DirectoryBatch

`import { DirectoryBatch } from "destack:fs/binding";`

Directory entries written by one read operation.

```ds title="DirectoryBatch"
export struct DirectoryBatch {
    count: uint64;
    pathLength: uint64;
    hasEnded: boolean;
}
```

[language/library/src/fs/binding/directory.ds:42:49](https://github.com/destack-sh/destack/blob/main/language/library/src/fs/binding/directory.ds#L42-L49)

## Members

### `count: uint64`

Number of entries written into the output slice.

### `pathLength: uint64`

Path buffer length consumed by entry names.

### `hasEnded: boolean`

Whether the directory stream reached the end.
