get all file from directory python3 code example Example: python get all file names in directory import glob print(glob.glob("/home/adam/*.txt"))