glob Fatma Kahveci Coding Page content It gets the contents of a directory. It uses shell-like wildcards. import glob glob.glob('<dir>/*.xml')