how to get a list of every file in a directory code example
Example 1: os list all files in one dir
import glob
print(glob.glob("/home/adam/*.txt"))
Example 2: get list of files in directory python
import os
path = '/folder1/folder2/'
files = os.listdir(path)