In [1]:
import glob
In [2]:
print(glob.glob('temp/*.txt'))
In [3]:
print(glob.glob('temp/**', recursive=True))
In [4]:
print(glob.glob('temp/**/*.txt', recursive=True))
In [5]:
print(glob.glob('temp/**/*.text', recursive=True))
In [6]:
print(glob.glob('temp/**/???.text', recursive=True))
In [7]:
print(glob.glob('temp/**/[0-9][0-9][0-9].txt', recursive=True))