Fichiers de liste Python dans le répertoire actuel
import os
files = os.listdir('.')
print(files)
for file in files:
# do something
Soggy Boi
import os
files = os.listdir('.')
print(files)
for file in files:
# do something
#see a list of all available paths
import os
os.listdir(path='.') #Where '.' denotes the same location. For subfolders:
os.listdir(path='./subfoldername' # you can go deeper and deeper using the same method