[Tutor] cp file
kamariah lamim
klhjhm at hotmail.com
Thu Aug 28 17:30:28 EDT 2003
I have solved the problem - just a typing error ; suppose to be
user_20_0.3_0.2/ instead of usr_20_0.3_0.2/'
>From: "kamariah lamim" <klhjhm at hotmail.com>
>To: tutor at python.org
>Subject: [Tutor] cp file
>Date: Thu, 28 Aug 2003 16:18:07 +0800
>
>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
>
>
>_______________________________________________
>Tutor maillist - Tutor at python.org
>http://mail.python.org/mailman/listinfo/tutor
_________________________________________________________________
Download ringtones, logos and picture messages from MSN Malaysia
http://www.msn.com.my/mobile/ringtones/default.asp
More information about the Tutor
mailing list