Page 1 of 1

sftp Download max. 100 files?

Posted: Thu 27 Aug 2015 09:10
by mdonath
It seems that the TScSFTPClient component can download only 100 files:

Code: Select all

...
Ftp->OnDirectoryList = MyOnDirectoryList;;
TScSFTPFileHandle Handle = Ftp->OpenDirectory(FtpPath);
if(!Ftp->EOF)
{
    Ftp->ReadDirectory(Handle);
    Ftp->CloseHandle(Handle);
}
...
After calling ReadDirectory the OnDirectoryList event is fired not more than 100 times. In my case I expect rather 4000 times.
Is there a chance to increase it?
I am still using SecureBridge version 6.0.

Solved!

Posted: Thu 27 Aug 2015 09:24
by mdonath

Code: Select all

do
    Ftp->ReadDirectory(Handle);
while(!Ftp->EOF);
Ftp->CloseHandle(Handle);

Re: sftp Download max. 100 files?

Posted: Thu 27 Aug 2015 13:25
by ViktorV
It is good to see that the problem has been solved.
Feel free to contact us if you have any further questions about SecureBridge.