Answers for "how to get files list from active directory from where the python script is running"

0

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)
Posted by: Guest on February-12-2021

Code answers related to "how to get files list from active directory from where the python script is running"

Python Answers by Framework

Browse Popular Code Answers by Language