Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to search for a specific file extension with python

import glob, os
os.chdir("/mydir")
for file in glob.glob("*.txt"):
    print(file)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #search #specific #file #extension #python
ADD COMMENT
Topic
Name
9+4 =