Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

get all files within multiple directories python

from pathlib import Path
for f in Path().cwd().glob("../*.ext"):
    print(f)
    # do other stuff
Comment

PREVIOUS NEXT
Code Example
Python :: from sklearn.metrics import classification_report 
Python :: how to print alternate numbers in python 
Python :: what is a good python version today 
Python :: binary number in python 32 bit 
Python :: flask clear session 
Python :: python split list of tuples in two lists 
Python :: delete index in df 
Python :: django get user model funciton 
Python :: cosine similarity python numpy 
Python :: exoort csv google colab 
Python :: launch google chrome using python 
Python :: corona 
Python :: get csrf_token value in django template 
Python :: add static file in django 
Python :: feet to meter python 
Python :: printing a range of no one line in python 
Python :: SafeERC20: low-level call failed 
Python :: Make A Snake Game Using Python and Pygame 
Python :: value_counts to list 
Python :: add column names to dataframe pandas 
Python :: flask console log 
Python :: max of a dict 
Python :: python faker 
Python :: how to make a button circular in python 
Python :: sort column with numeric and text data 
Python :: escape string for html python 
Python :: multiple input in python 
Python :: find absolut vale in python 
Python :: not scientific notation python 
Python :: python read lines from text file 
ADD CONTENT
Topic
Content
Source link
Name
2+5 =