4/30/2021

python source code to print list of all subfolder and files

 

for path, subdirs, files in os.walk('/your_folder/'):
for name in files:
print(os.path.join(path, name))

No comments:

Post a Comment