read files from path python code example
Example 1: get files in directory python
import os
files_and_directories = os.listdir("path/to/directory")
Example 2: python get list of files in directory
from os import listdir
file_list = listdir(folder_path)