FTP status problems. (Again)

Kartic removethis.kartic.krishnamurthy at gmail.com
Sun Sep 18 00:09:24 CEST 2005


> Unfortunatly I stiill get the same error. :-(

The same "metaclass bases[]" error??

> Here is the code:
> import ftplib
-snip-
> if __name__ == '__main__':
> 	ftp = ftplib.FTP("ftp.sadpanda.cjb.cc")
> 	ftp.login("sadpanda","PASSWORDEDITIEDOUT")
> 	filename = "/FrenchBrochure.pages.zip"
> 	ftp.storbinary("STOR " + filename, ProgressFile(filename, "rb"), 1024)
> 
> 	ftp.quit()


Your code works for me.. I just made one minor change.

I gave a different target name:

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

Thanks,
-Kartic



More information about the Python-list mailing list