how to get files list from active directory from where the python script is running code example
Example: how to get files list from active directory from where the python script is running
import os
for root, dirs, files in os.walk("."):
for filename in files:
print(filename)