Apr-22-2017, 07:21 PM
Hi, I want my script to import photos from my smartphone, to the raspberry pi.
My code looks like this:
Does anyone have an idea what I did wrong?
My code looks like this:
import glob, shutil source = "mtp://[usb:001,025]/Phone/Pictures/Ballons" and "mtp://[usb:001,025]/Phone/Pictures/Familie" and "mtp://[usb:001,025]/Phone/Pictures/Florida" and "mtp://[usb:001,025]/Phone/Pictures/Ramona" and "mtp://[usb:001,025]/Phone/Pictures/Screenshots" dest = "/home/pi/Desktop/Photos" for file in glob.glob(source + "/*.jpg"): shutil.copy(file, dest)I don't see any problem in it, but when I run it nothing happens.
Does anyone have an idea what I did wrong?