After looking at Scp object, I see there are methods for transferring only one file at a time. There are no methods for transferring complete directories (recursively), even though the SCP supports this functionality.
edit: added feature-request tag
I've added it into our list of possible future enhancements.
Vote either this question or this uservoice item up if it's important to you.
edit: added link to the uservoice.
edit: We are working on recursive SCP support and it will be added in the next public release.
Recursive SCP is supported in Rebex SFTP build 4060 or later. This build was released in February 2011.
Although the SCP protocol supports directory transfers we decided not to implement this feature due to multiple problems associated with it.
Since the SCP protocol has been superseded by the more comprehensive SFTP protocol, which also operates over an SSH session, we recommend to use the Sftp.PutFiles/GetFiles methods described at this batch transfer tutorial instead.
Welcome to Q&A forum for C# and VB.NET developers working with following .NET components:
If you need immediate assistance, please contact us directly.