klyn.io.DirectoryBatch.exhausted
field
public exhausted as Boolean = false
Description

true when the directory stream has reached its end.

if batch.exhausted:
    print("Done")