import glob print(glob.glob("/home/adam/*.txt")) // output ['/home/adam/file1.txt', '/home/adam/file2.txt', .... ]