how to get list of files in a folder code example
Example 1: python get list of files in directory
from os import listdir
file_list = listdir(folder_path)
Example 2: get list file in folder python
lstJson = [f for f in os.listdir(str(self.pathJson)) if f.endswith('.json')]
return lstJson