Hi,
I'm trying to get some python code to copy a video file from one location (on the pi's SD card) to another (a box sync cloud storage folder). I am trying to use the shutil.copy function but am have problems of which I'm not sure of. The internet seems to suggest some byte or unicode issue? Note: line 71 is the below, the file is an executable and I am using sudo before command.
Python code:
shutil.copy("/tmp/motion/Video-_1.avi", "/home/pi/box/Private/MotionVideos")
result from comms over putty:
Traceback (most recent call last):
File "/media/USBHDD1/PiCloud/movie_end.py", line 71, in <module>
shutil.copy("/tmp/motion/Video-_1.avi", "/home/pi/box/Private/MotionVideos")
File "/usr/lib/python2.7/shutil.py", line 120, in copy
copymode(src, dst)
File "/usr/lib/python2.7/shutil.py", line 91, in copymode
os.chmod(dst, mode)
OSError: [Errno 22] Invalid argument: '/home/pi/box/Private/MotionVideos/Video-_1.avi'
Does anyone know what this possibly might be. This is very frustrating!!!