Uploading a directory |
You can upload an entire directory using the Sftp.UploadDir method passing in a System.IO.DirectoryInfo instance representing a directory on your local system.
Example
[C#]
// specify directory to upload
DirectoryInfo dir = new DirectoryInfo("c:/secureftpfactory/examples/ftps");
// upload directory
sftp.UploadDir(dir);
[VB]
' specify directory to upload
Dim dir As DirectoryInfo = New DirectoryInfo("c:\secureftpfactory\examples\ftps")
' upload directory
sftp.UploadDir(dir)