Answers for "python glob all files in directory"

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
0

python glob how to read all txt files in folder

import glob
glob.glob('*.txt')
Posted by: Guest on December-04-2020

Code answers related to "python glob all files in directory"

Python Answers by Framework

Browse Popular Code Answers by Language