[Tutor] cp file

kamariah lamim klhjhm at hotmail.com
Thu Aug 28 17:18:07 EDT 2003


i want to copy a file from current directory to another directory using 
shutil . However , it failed giving error:
File "/usr/lib/python2.2/shutil.py", line 29, in copyfile
    fdst = open(dst, 'wb')
IOError: [Errno 21] Is a directory: 'usr_20_0.3_0.2/'

could anyone trace my problem?
this is the code (simple enough as i want to test it before going into 
detailed ):
shutil.copy('disper.exe','usr_20_0.3_0.2/')

_________________________________________________________________
Get MSN 8 and help protect your children with advanced parental controls.  
http://join.msn.com/?page=features/parental




More information about the Tutor mailing list