ftputil - uploading many files too long
- From: geon <geon@xxxxxxx>
- Date: Mon, 11 Jul 2005 19:08:58 +0200
Hi,
When I try to upload many files I get such a error message:
Traceback (most recent call last):
File "I:\Python\my_py\wwwzaci\xcopy_ftp.py", line 51, in ?
except: x=host.upload(zdroj, cilFTP,'b')
File "C:\prg\python24\Lib\site-packages\ftputil\ftputil.py", line 463, in uplo
ad
self.__copy_file(source, target, mode, open, self.file)
File "C:\prg\python24\Lib\site-packages\ftputil\ftputil.py", line 452, in __co
py_file
target = target_open(target, target_mode)
File "C:\prg\python24\Lib\site-packages\ftputil\ftputil.py", line 265, in file
host = self._copy()
File "C:\prg\python24\Lib\site-packages\ftputil\ftputil.py", line 241, in _cop
y
return FTPHost(*self._args, **self._kwargs)
File "C:\prg\python24\Lib\site-packages\ftputil\ftputil.py", line 138, in __in
it__
self._session = self._make_session()
File "C:\prg\python24\Lib\site-packages\ftputil\ftputil.py", line 235, in _mak
e_session
return ftp_error._try_with_oserror(factory, *args, **kwargs)
File "C:\prg\python24\Lib\site-packages\ftputil\ftp_error.py", line 78, in _tr
y_with_oserror
raise TemporaryError(obj)
ftputil.ftp_error.TemporaryError: 421 Login Timeout (25 seconds): closing contro
l connection.
I think its not about many files but because of it takes too long for my ftp server (25s). I tried
many things but nothing helps.
Any help is appreciated...
--
geon
.
Relevant Pages
- Re: How to use FTP functions
... // Connect to FTP server. ... // Remove any existing target file from the file system. ... > LPCTSTR lpszProxyName, ... > But I'm getting error code 12029 in the function InternetConnect(). ... (microsoft.public.windowsce.platbuilder) - FTP Server
... I can not get the FTP server to work. ... The target is Win CE ... Development system is Win XP pro. ... (microsoft.public.windowsce.embedded) |
|