If you use Linux, no need to bother with Python. You can use the commands below in a bash terminal, or make a bash script to do this.
You need to know what you want to copy and where you want to copy it to!
the -r flag stands for recursive, then cp will copy the directory and the contents to the destination.
Quote:# copy a file to 2 different folders the format is: echo destination1 destination2 | xargs -n 1 cp /path/to/sourcefile.something
echo /home/pedro/tmp/ /home/pedro/uploads/ | xargs -n 1 cp -v /home/pedro/temp/b.txt
Quote:# copy a whole directory to another directory the format is: cp -rv source destination
cp -rv /home/pedro/temp/ /home/pedro/tmp/
Quote:# copy a directory to 2 different directories the format is: echo /path1/ /path2/ /path3/ | xargs -n 1 cp -rv /path/to/directory/
echo /home/pedro/tmp/ /home/pedro/uploads/ | xargs -n 1 cp -rv /home/pedro/temp/
Fast and easy!
If you use Windows, you can probably do this in a similar fashion, but I don't know how!
To do this using Python, probably best to use the module
shutil