How do i COPY files from 1 directory to another..

Bjorn Pettersen BPettersen at NAREX.com
Tue Jun 25 13:39:34 EDT 2002


> From: Dirgesh Patel [mailto:Kemp100 at attbi.com] 
> 
> How do i Copy multiple files from 1 directory to 
> another..this is the code I have so far..but it gives me a 
> PERMISSION DENIED ERROR..
> 
> 
> import shutil
> import os
> 
> shutil.copy2(r"C:\test",r"C:\test1")
> 
> I wanna copy everythign from C:\test to C:\test1....

I'm guessing you really want shutil.copytree()?

-- bjorn






More information about the Python-list mailing list