Built in file copy utility 
Author Message
 Built in file copy utility

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


Tue, 28 Sep 2004 10:24:46 GMT  
 Built in file copy utility

Quote:

> 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']
Quote:
>>> print shutil.copyfile.__doc__

Copy data from src to dst

Neal



Tue, 28 Sep 2004 11:09:08 GMT  
 Built in file copy utility


Quote:

> > 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',

Quote:
> '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.


Tue, 28 Sep 2004 19:14:18 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. CW2.003 File copy changes the date.....need a way to copy w/o date change

2. BUG: file copy copies links as links

3. Copy and Paste in the Browse utility

4. CW2001.01 Database Copy Utility - Manuals???

5. Copy to Header Utility

6. request: web site copy utility

7. any object copy/save utilities?

8. System-Building utility in VAXLISP.

9. Utility for creating fonts.scale files from AFM files

10. Site for utility that converts EBCDIC file to ascii file

11. copying files using as a different file name

12. Setting file attributes and Copying files

 

 
Powered by phpBB® Forum Software