Answers for "for all file in folder python"

3

for every file in the folder do python

for file in os.listdir(inputdir):
Posted by: Guest on April-20-2021
5

how to search for a specific file extension with python

import glob, os
os.chdir("/mydir")
for file in glob.glob("*.txt"):
    print(file)
Posted by: Guest on March-06-2020

Code answers related to "for all file in folder python"

Python Answers by Framework

Browse Popular Code Answers by Language