python + dir listing code example
Example 1: list files python
import glob
files=glob.glob(given_path)
Example 2: list directory in python
from os import listdir
## Prints the current directory as a list (including file types)
print(os.listdir())