The Python Game Book

code games. learn Python.

User Tools

Site Tools


Sidebar

Github:

en:glossary:g:glob

glob

python standard module, to process files in a directory. See also os.walk.

Glob can enter into directories recursively.

import glob
list_of_filenames = glob.glob("*.txt", recursive = False)

en/glossary/g/glob.txt · Last modified: 2021/01/18 18:52 by horst