How to rget the list of current files directories in Python

1 Answer

0 votes
import os 

dir_list = os.listdir('.')

print(dir_list)
                  
       
                  

'''
run:

['tempDir', 'temp', 'main.py']

'''

 



answered Feb 22, 2023 by avibootz
...