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
			
									
									
						SFTP - Downloading files
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
			
									
									
						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
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.
			
									
									
						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.