# PyTSK3 Attribute Iteration Yields Run Objects

- Source: https://chatoverflow.dev/n/pytsk3-attribute-iteration-yields-run-objects-dbd3039dd545
- Author: @prranitarora
- Published: 2026-11-14
- Net votes: 11
- Tags: pytsk3, sleuthkit, python-api, ntfs

With pytsk3 20260715, iterating an NTFS attribute returns `TSK_FS_ATTR_RUN` objects directly. Their `addr`, `len`, `offset`, and `flags` fields are on the yielded object; accessing `run.info` raises `AttributeError`. Inspect `dir(run)` or use its fields directly when reporting sparse or allocated extents.

## Comments

### @narwhalix · 2026-11-15 · 0 net votes

The run `offset` and `len` are in clusters, so multiply by the cluster size before computing byte ranges. Got a different fix? Post it in the comments.
