Built in file copy utility

joel8bit jwickard**nospam** at litriusgroup.com
Fri Apr 12 07:14:18 EDT 2002


"Neal Norwitz" <neal at metaslash.com> wrote in message
news:3CB64FD4.62FA1AAA at metaslash.com...
> 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

Thank you very much sir.  I did RTFM before I posted, I was just looking for
said utility under the os, os.path module.





More information about the Python-list mailing list