A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-list/2005-September/336415.html below:

FTP status problems. (Again)

FTP status problems. (Again) 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

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4