Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR 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)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #copy #image #folder #python
ADD COMMENT
Topic
Name
6+6 =