FTP status problems. (Again)

Kartic removethis.kartic.krishnamurthy at gmail.com
Sat Sep 17 17:44:53 EDT 2005


Hello,

 > 	file = "/FrenchBrochure.pages.zip"
 > 	ftp.storbinary("STOR " + file, ProgressFile(file, "rb"), 1024)

You are using file = "/FrenchBrochure.pages.zip" (sorry I did not notice 
earlier).

You can not use file as variable name like you have, as it represents a 
file object in python.

Please change your variable name from file to filename.

Thanks.



More information about the Python-list mailing list