How do you copy files from one location to another?

Gregory Ewing greg.ewing at canterbury.ac.nz
Fri Jun 17 03:25:20 EDT 2011


John Salerno wrote:
> I want it to copy a set of files/directories from a
> location on my C:\ drive to another directory on my E:\ drive. I don't
> want to rename or delete the originals,

It sounds like shutil.copy() is what you want, or one of the
other related functions in the shutil module.

-- 
Greg



More information about the Python-list mailing list