In message <4c78cc0d.8050...@sschwarzer.net>, Stefan Schwarzer wrote:
> In message , Lawrence D'Oliveiro wrote:
>>
>> It might not be the fault of the FTP server. If you’re going through a
>> router doing NAT, that could be where the timeout is happening.
>
> Good point, thanks! That may explain
Hi Lawrence,
On 2010-08-28 01:49, Lawrence D'Oliveiro wrote:
>> Now it may be that the data connection, after having started
>> the transfer, works as it should, but the control connection
>> times out because the duration of the transfer is too long.
>
> It might not be the fault of the FTP serv
In message <4c74e604.6090...@sschwarzer.net>, Stefan Schwarzer wrote:
> Now it may be that the data connection, after having started
> the transfer, works as it should, but the control connection
> times out because the duration of the transfer is too long.
It might not be the fault of the FTP se
Hi durumdara,
On 2010-08-25 11:18, durumdara wrote:
> On aug. 25, 08:07, Stefan Schwarzer wrote:
>>
>> The file is 2 GB in size and is fully transferred, without
>> blocking or an error message. The status message from the
>> server is '226-File successfully transferred\n226 31.760
>> seconds (me
Hi durumdara,
On 2010-08-25 09:43, durumdara wrote:
>> I can imagine the error message (a full traceback if
>> possible) would help to say a bit more about the cause of
>> the problem and maybe what to do about it.
>
> This was:
>
> Filename: "Repositories 20100824_101805 (Teljes).zip" Size: 153
Hi!
On aug. 25, 08:07, Stefan Schwarzer wrote:
>
> The file is 2 GB in size and is fully transferred, without
> blocking or an error message. The status message from the
> server is '226-File successfully transferred\n226 31.760
> seconds (measured here), 64.48 Mbytes per second', so this
> looks
Hi!
>
> So if I understand correctly, the script works well on
> smaller files but not on the large one?
Yes. 500-800 MB is ok. > 1 GB is not ok.
>
> > It down all of the file (100%) but the next line never reached.
>
> _Which_ line is never reached? The `print` statement after
> the `retrbinar
Hi durumdara,
On 2010-08-24 16:29, Stefan Schwarzer wrote:
>> I experienced some problem.
>> The server is Windows and FileZilla, the client is Win7 and Python2.6.
>> When I got a file with size 1 303 318 662 byte, python is halt on
>> "retrbinary" line everytime.
>
> So if I understand correctly
Hi durumdara,
On 2010-08-24 11:21, durumdara wrote:
> def CallBack(Data):
> d['size'] = d['size'] + len(Data)
> d['buffer'].append(Data)
> percent = (d['size'] / float(fsize)) * 100
> percentp10 = int(percent/10)
> if percentp10 > d['lastpercentp10']:
>
Hi!
See this code:
import os, sys, ftplib
from ftplib import FTP
ftp = FTP()
ftp.connect('ftp.anything.hu', 2121)
ftp.login('?', '?')
print ftp.getwelcome()
ftp.set_pasv(False)
ls = ftp.nlst()
for s in ls:
print "\nFilename:", '"%s"' % s,
fsize = ftp.size(s)
print
10 matches
Mail list logo