1import glob
2import shutil
3import os
4
5src_dir = "your/source/dir"
6dst_dir = "your/destination/dir"
7for jpgfile in glob.iglob(os.path.join(src_dir, "*.jpg")):
8 shutil.copy(jpgfile, dst_dir)
9
1import shutil
2import os
3
4os.chdir('source_image_dir_path')
5dst_dir = "your_destination_dir_path"
6for f in os.listdir():
7 shutil.copy(f, dst_dir)