File Copying

Bjorn Pettersen BPettersen at
Mon Jun 24 12:31:37 EDT 2002

> From: Rajat Chopra [mailto:rchopra at] 
> How do you copy a file from one directory to another. I have 
> looked all over and haven't found any documentation on it. 
> Essentially, I want to copy a file from $SRC_DIRECTORY to 
> Does anyone know which modules are used? Or does anyone have 
> some sample scripts?

Look in the shutil module.

-- bjorn

More information about the Python-list mailing list