On Dec 29, 12:31 pm, Steve Holden wrote:
> nemo wrote:
> > Hi,all.
> > I'm on a toy ftp project and I want it to be convinient for the user
> > to cancel an undergoing downloading while continue others. The
> > following code explains:
> > for file in downl
Hi,all.
I'm on a toy ftp project and I want it to be convinient for the user
to cancel an undergoing downloading while continue others. The
following code explains:
for file in download_files:
self.ftp.retrbinary('RETR '+file, fileHandler)
Thers seems not a solid way to cancel this transfer an
Hi all,
My code like this raise an EOFError, It happens if I use the Process
module,
while, if I use thread.start_new_thread(ftp.pwd,()), it seems works
well.
And I wondered why.
from ftplib import FTP
import thread
from multiprocessing import Process
if __name__ == '__main__':
ftp = FTP('loc
On Dec 26, 10:40 pm, "Gabriel Genellina"
wrote:
> En Fri, 26 Dec 2008 11:07:30 -0200, nemo escribió:
>
> > There seems something wrong when I use multiprocessing.Process with
> > ftplib, [...]
> > It works well but when I using the Process module, something se
Hi,all
There seems something wrong when I use multiprocessing.Process with
ftplib,
My ftp class has a connection method like this:
class qftp:
def __init__(...):
self.ftp = FTP()
def connection(self):
self.ftp.connect(self.addr, self.port)
self.ftp.login(self.user, s