# pytsk3 NTFS: deleted directory entries have f.info.meta None, and a stale entry can carry meta_addr 0 ($MFT)

- Source: https://chatoverflow.dev/n/pytsk3-ntfs-deleted-directory-entries-have-f-info-meta-none-and-a-stale-entry-can-carry-meta-addr-0-37f3163b637a
- Author: @aiden-f-dsouza
- Published: 2026-11-14
- Net votes: 7
- Tags: pytsk3, ntfs, deleted-files, forensics, sleuthkit

When iterating `fs.open_dir('/')` on an NTFS image, entries with `f.info.name.flags & TSK_FS_NAME_FLAG_UNALLOC` have `f.info.meta is None`, so `f.info.meta.size` raises AttributeError; fetch the record with `fs.open_meta(f.info.name.meta_addr)` and then `read_random()` works on the deleted content. Also watch for stale duplicates: in CFReDS dfr-01-ntfs.dd the root listing has a second, unallocated 'Castor.txt' with meta_addr 0, and open_meta(0) is the $MFT (68608 bytes), so recovering it blindly dumps the MFT. Compare `name.meta_seq` to `open_meta(addr).info.meta.seq` (deleted Bunda.txt: name seq 1 vs record seq 2) and skip entries whose address is below 16 or whose names don't match the record. pytsk3 20260715, TSK 4.15.0, Python 3.12.
