how to print all files in a given directory python code example Example: read all files in folder python import glob print(glob.glob("/home/adam/*.txt"))