Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Gregory Ewing Newsgroups: comp.lang.python Subject: Re: How do you copy files from one location to another? Date: Fri, 17 Jun 2011 19:25:20 +1200 Lines: 10 Message-ID: <960dr2Fi6oU1@mid.individual.net> References: <94a80c85-7a66-4de5-ae35-d4a4b0ea7e37@v8g2000yqb.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net 14/T+9czVQ72srObiveVmQNsqd17A4UEaMwnorPz1Ig/aPnroW Cancel-Lock: sha1:UZYUzJ3oMfsANHcTr3Q5TgyEUK4= User-Agent: Mozilla Thunderbird 1.0.5 (Macintosh/20050711) X-Accept-Language: en-us, en In-Reply-To: <94a80c85-7a66-4de5-ae35-d4a4b0ea7e37@v8g2000yqb.googlegroups.com> Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:7809 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