get a list of files in a directory osx code example Example: os list all files in one dir import glob print(glob.glob("/home/adam/*.txt"))