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