Answers for "specify the path for python to iterate over files in different folder directory"

0

python iterate through files in directory

import os

for filename in os.listdir(directory):
    if filename.endswith(".asm") or filename.endswith(".py"): 
         # print(os.path.join(directory, filename))
        continue
    else:
        continue
Posted by: Guest on October-26-2020

Code answers related to "specify the path for python to iterate over files in different folder directory"

Python Answers by Framework

Browse Popular Code Answers by Language