I would use bash rather than python. If you used python you'd just end up calling the shell anyway.
When I stick a usb into my computer it is the device /media/NANO
If you have multiple usb sticks they'll probably get numbers.
You'll need to know the file names. The bash command lists the directory:
$ ls -R /media/NANO
In my case I have a no doubt fully exciting movie
I've chosen to store the files onto /tmp/NANO
Next, do these commands by hand to make sure they work.
mkdir will fail if you already have a NANO directory.
you could remove it with
rm -r /tmp/NANO
or clean it with
rm -r /tmp/NANO/*
$ mkdir /tmp/NANO
$ cp -r /media/NANO/* /tmp/NANO
$ vlc --fullscreen file:///tmp/NANO/Reunion_2011/SANY0051.AVI
vlc played the movie as expected, but produced a load of error messages that didn't look important.
I vanquish the error output to /dev/null .
You should first know what are your errors before you hide them.
So you'd have a bash script that looks something like this. Use
$ chmod +x thisscript.sh
to make it executable.
Then run it with
# first I'll make a new directory in /tmp and copy the files there.
cp -r /media/NANO/* /tmp/NANO
# next run vlc
# good grief, vlc has almost as many options as gcc.
nohup vlc --fullscreen file:///tmp/NANO/Reunion_2011/SANY0051.AVI &>/dev/null &