Built in file copy utility

Neal Norwitz neal at metaslash.com
Thu Apr 11 23:09:08 EDT 2002


joel8bit wrote:
> 
> I just wanted to check and see if there was a built in module to copy files
> from one directory to another.

>>> import shutil
>>> print dir(shutil)  
['__all__', '__builtins__', '__doc__', '__file__', '__name__', '_build_cmdtuple', 'copy', 'copy2', 'copyfile',
'copyfileobj', 'copymode', 'copystat', 'copytree', 'os', 'rmtree', 'stat', 'sys']
>>> print shutil.copyfile.__doc__
Copy data from src to dst

Neal



More information about the Python-list mailing list