python get all names of documents in a folder code example
Example 1: get list of folders in directory python
import os
my_list = os.listdir('My_directory')
Example 2: python get all file names in directory
import glob
print(glob.glob("/home/adam/*.txt"))