Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Python
get all files within multiple directories python
Peter H.
Programming language:
Python
2021-07-17 11:25:49
0
Q:
get all files within multiple directories python
Lily Wolf
Code:
Python
2021-05-31 22:20:07
from pathlib import Path for f in Path().cwd().glob("../*.ext"): print(f) # do other stuff
1
Tags
python
get
file
files
multiple
within
Related
python script to read all file names in a folder
python ftplib get list of directories
get files in directory python
python count files directory
python get all file names in directory
os list all files in one dir
python get list of files in path
python get files in directory
python list directories only
python list all files in directory
python read a directory to get all files in sub folders
list files in directory python
read all files in folder python
python list files in current directory
New to Communities?
Join the community