sftp Download max. 100 files?

Discussion of open issues, suggestions and bugs regarding network security and data protection solution - SecureBridge
Post Reply
mdonath
Posts: 5
Joined: Tue 02 Oct 2012 14:03
Location: Leipzig, Germany

sftp Download max. 100 files?

Post by mdonath » Thu 27 Aug 2015 09:10

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.

mdonath
Posts: 5
Joined: Tue 02 Oct 2012 14:03
Location: Leipzig, Germany

Solved!

Post by mdonath » Thu 27 Aug 2015 09:24

Code: Select all

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

ViktorV
Devart Team
Posts: 3168
Joined: Wed 30 Jul 2014 07:16

Re: sftp Download max. 100 files?

Post by ViktorV » Thu 27 Aug 2015 13:25

It is good to see that the problem has been solved.
Feel free to contact us if you have any further questions about SecureBridge.

Post Reply