Page 1 of 1

SFTP - Downloading files

Posted: Tue 31 Aug 2010 21:01
by Pelstar
Hi there,

I'm trying to use the ScSFTP component to download a batch of files from a secure FTP server, but I keep receiving an "Unexpected end of packet" error whenever I call the download command.

Any ideas what could be causing this? I'm sure it's something obvious, but I can;t see it.

Sam

Posted: Wed 01 Sep 2010 07:18
by Dimon
I can not reproduce the problem.
Please try to use the SFTPClient demo of SecureBridge and check if the problem persists.
Can I have access to your SFTP server?

Posted: Wed 01 Sep 2010 09:09
by Pelstar
Hi Dimon,

I have tried using the client demo and it works fine. I get the error when I attempt to run the ftp client in a new application, and automatically download all files immediately after connection.

Do you know what could cause that error? I can only see four places in the source code that can cause it to pop up, and two of those are to do with the PacketType

Posted: Wed 01 Sep 2010 10:11
by Dimon
Try to compose a small sample to demonstrate the problem and send it to dmitryg*devart*com.

Posted: Thu 02 Sep 2010 09:00
by Pelstar
Hi Dimon,

I sent you a test program yesterday from samuel*pelstar*co*uk. Did you receive it?

Posted: Thu 02 Sep 2010 10:38
by Dimon
We have received your test application. We have reproduced this problem and fixed it. This fix will be included in the next SecureBridge build.
The error is arised because you are trying to download files before you get all directory list. As a workaround you can read all directory list and only after this download all files by turn.