public exhausted as Boolean = false
true when the directory stream has reached its end.
true
if batch.exhausted: print("Done")