Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Python
python find specific file in directory
Laura B. Martinez
Programming language:
Python
2021-05-30 16:54:25
0
Q:
python find specific file in directory
parallax
Code:
Python
2021-02-12 13:37:13
import glob print(glob.glob("/home/adam/*.txt"))
8
Sour Tofu
Code:
Python
2021-07-05 09:28:50
text_files = glob.glob(path + "/**/*.txt")
1
Tags
python
file
specific
find
Related
get directory of file python
python open each file in directory
python how to get the folder name of a file
python get all file names in a dir
get file names in folder python
python script to read all file names in a folder
get files in directory python
python how to see if file is directory
python list all files in directory
python list files in current directory
python read a directory to get all files in sub folders
python get all file names in directory
python get files in directory
python get list of files in path
get list of folders in directory python
python open file same folder
New to Communities?
Join the community