Issue #2138239 by damiankloip: Use GlobIterator instead of glob.