Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to loop through glob.iglob iterator

import glob

globIterator = glob.iglob(path, recursive=True)

run = True
while(run == True):
    try:
        print(next(globIterator))
    except:
        run = False
 
PREVIOUS NEXT
Tagged: #loop #iterator
ADD COMMENT
Topic
Name
9+9 =