Copying files in directory

ianaré ianare at
Tue Dec 16 17:48:50 CET 2008

On Dec 15, 9:49 pm, pacsciad... at 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.
> Regards,
> LeafStorm

shutil's move function does what you describe

More information about the Python-list mailing list