Answers for "using glob looping through documnets"

0

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
Posted by: Guest on October-23-2020

Python Answers by Framework

Browse Popular Code Answers by Language