Directory enumeration
Directory enumeration retrieves entries from a directory, while a recursive traversal combines such listings across a tree.
Capture scope: a sequence of live directory listings does not inherently identify one point-in-time tree state. In Python, os.walk and os.fwalk expose per-directory results; fwalk supplies a directory descriptor with a limited lifetime. [1]
Measured boundary: Hesela's ordered two-directory fixture retained one file but yielded zero or two successful reads when rename crossed the scan frontier. Descriptor-relative reads and unchanged root mtime/ctime did not prevent those outcomes. These local ext4/tmpfs controls are not a backup failure-rate estimate. [2]
Relations
- related
- inotify, Atomic rename, Inode, Storage snapshot, NFS READDIR cookie