Copying files in directory

James Mills prologic at shortcircuit.net.au
Mon Dec 15 22:00:23 EST 2008


On Tue, Dec 16, 2008 at 12:49 PM,  <pacsciadmin at gmail.com> wrote:
> I'm writing a project management system, and I need the ability to
> accept a directory name and move its contents to another directory.
> Can someone give me a code sample that will handle this? I can't find
> any "copying" functions in os or os.path.

Try the shutil module.

--JamesMills



More information about the Python-list mailing list