function UploadR(what, toWhere)

The UploadR function upload the file(s) specified in the what parameter (supports wildcards) to the toWhere destination directory on the remote file server. This function is recursive, therefore when using wildcards, this function will also upload all matching files from sub-directories of the directory specified in the what parameter.


 var scli = new SftpClient();
 scli.Host = '';
 scli.User = 'someusername';
 scli.KeyFile = './my_id.rsa';
 if (scli.Connect()) {
  // perform your file transfers...
  // ...
  scli.UploadR('./docs/*.docx', '/archive/docs');
  // ...
 scli = null