python list all files in all directory code example
Example 1: python get all file names in directory
import glob
print(glob.glob("/home/adam/*.txt"))
Example 2: python get list of files in directory
from os import listdir
file_list = listdir(folder_path)