In work i have bee tasked with writing a small porgram
that extracts tar.gz file on to a disk. using the Pi and PiFaceCAD
I have completed this task to their satisfaction. However this
project go me thinking of a small one for myself.
The idea is that using the Pi and PiFaceCAD as a simple file transfer
box. To move all the videos from my GoProHero3 to an external hardrive.
This i can manage but i then thought that what if i want to transfer from a different camera
to the HDD or from the GoPro to a different HDD. The directories will be different.
is there anyway to either just copy from one port and write to another, regardless of what has been
plugged in. such as
move from sda to sda1
or can i right a bit of could that will fill in the blanks with what ever the label of the device is. such as
move from ********** to *********** (using the labels like.' /media/USB' or /media/camera)
an example of the code i want to use is .
sorry if i have worded this question badly but i hope you guys can see what i mean
Code: Select all
import shutil source = '/media/gopro' destination = '/media/HDD' shutil.move(source, destination)