Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #52302 > unrolled thread

Re: ftplib returns EOFError

Started byDorian MJ <dorianmj@gmail.com>
First post2013-08-10 15:43 +0400
Last post2013-08-10 15:43 +0400
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python


Contents

  Re: ftplib returns EOFError Dorian MJ <dorianmj@gmail.com> - 2013-08-10 15:43 +0400

#52302 — Re: ftplib returns EOFError

FromDorian MJ <dorianmj@gmail.com>
Date2013-08-10 15:43 +0400
SubjectRe: ftplib returns EOFError
Message-ID<mailman.423.1376135444.1251.python-list@python.org>

[Multipart message — attachments visible in raw view] — view raw

 print "\t\tUploading file %s..." % newname
try:
self.ftp.storbinary("STOR %s" % newname, open(file))
except EOFError: # yep??
self.ftp.connect(self.ftpServ) # reconnecting
self.ftp.login(ftpUser, ftpPass)
self.ftp.storbinary("STOR %s" % newname, open(file))
print "\t\tFile %s uploaded" % newname

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web