copy directory from a to b, how?

tiddlerdeja at my-deja.com tiddlerdeja at my-deja.com
Mon Mar 27 12:43:44 CEST 2000


I'd like to copy a directory from c:/Inetpub/staging to
c:/Inetpub/wwwroot.

How do I do this in Python? I know that I have shutil.copytree() at my
disposal, but this requires that the destination directory doesn't
exist. I don't want to remove c:/Inetpub/wwwroot so that I can perform
the copy.

What is the best way to do this? Any help appreciated.

Thanks.


Sent via Deja.com http://www.deja.com/
Before you buy.



More information about the Python-list mailing list