File Copying

Bjorn Pettersen BPettersen at NAREX.com
Mon Jun 24 18:31:37 CEST 2002


> From: Rajat Chopra [mailto:rchopra at myrealbox.com] 
> 
> 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 
> $TARGET_DIRECTORY.
> 
> 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