Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

copy image from one folder to another in python

import glob
import shutil
import os

src_dir = "your/source/dir"
dst_dir = "your/destination/dir"
for jpgfile in glob.iglob(os.path.join(src_dir, "*.jpg")):
    shutil.copy(jpgfile, dst_dir)
Comment

PREVIOUS NEXT
Code Example
Python :: python MinMaxScaler() 
Python :: DEPRECATION: The default format will switch to columns in the future. You can use --format=(legacy|columns) (or define a format=(legacy|columns) in your pip.conf under the [list] section) to disable this warning. 
Python :: Package python3-pip is not available, but is referred to by another package. 
Python :: df sort values 
Python :: matplotlib clear plot 
Python :: reverse column order pandas 
Python :: how to separate year from datetime column in python 
Python :: python how to flatten a list 
Python :: how to open a software using python 
Python :: load model keras 
Python :: ndarray to pil image 
Python :: print today time python 
Python :: tkiner border 
Python :: dataframe column contains string 
Python :: time start python 
Python :: save file python tkinter 
Python :: python3 iterate through indexes 
Python :: Create MySQL table from Python 
Python :: update tensorflow pip 
Python :: how to count docx pages python 
Python :: python url join 
Python :: pytorch tensor add one dimension 
Python :: check if a list contains an item from another list python 
Python :: loop on dataframe lines python 
Python :: install a specific version of django 
Python :: how to define a dataframe in python with column name 
Python :: python access index in for loop 
Python :: check corently installed epython version 
Python :: how to get the contents of a txt file in python 
Python :: matplotlib title 
ADD CONTENT
Topic
Content
Source link
Name
5+8 =