Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Python
how to search for a specific file extension with python
Assen Robin
Programming language:
Python
2021-07-03 00:36:50
0
Q:
how to search for a specific file extension with python
Ada95
Code:
Python
2021-07-13 10:19:20
import glob, os os.chdir("/mydir") for file in glob.glob("*.txt"): print(file)
5
Tags
python
file
specific
search
how
Related
how to read specific words from a file in python
file base name and extension python
python delete file with extension
python get filename without extension
selenium python find all links
python find specific file in directory
python code to remove file extension
python get current file location
how to read a specific line from a text file in python
python get file extension from path
python read file in string list
how to check for a particular word in a text file using python
how to search a file in windows 10 using python
how to know how much lines a file has using python
python check file extension
New to Communities?
Join the community