Differences
This shows you the differences between the selected revisions of the page.
| 2014-03-03 | 2014-03-05 | ||
| key size should be 2048 bit at least nowadays (martin) | it's FileMask, not Include Mask (martin) | ||
| Line 79: | Line 79: | ||
| // session.SynchronizeDirectories( | // session.SynchronizeDirectories( | ||
| // SynchronizationMode.Local, localPath, remotePath, false, false, SynchronizationCriteria.Time, | // SynchronizationMode.Local, localPath, remotePath, false, false, SynchronizationCriteria.Time, | ||
| - | // new TransferOptions { IncludeMask = fileName }).Check(); | + | // new TransferOptions { FileMask = fileName }).Check(); |
| if (session.FileExists(remotePath)) | if (session.FileExists(remotePath)) | ||
| { | { | ||
| Line 172: | Line 172: | ||
| ' session.SynchronizeDirectories( _ | ' session.SynchronizeDirectories( _ | ||
| ' SynchronizationMode.Local, localPath, remotePath, False, False, SynchronizationCriteria.Time, _ | ' SynchronizationMode.Local, localPath, remotePath, False, False, SynchronizationCriteria.Time, _ | ||
| - | ' New TransferOptions With { .IncludeMask = fileName }).Check | + | ' New TransferOptions With { .FileMask = fileName }).Check |
| If session.FileExists(remotePath) Then | If session.FileExists(remotePath) Then | ||
| Dim download As Boolean | Dim download As Boolean | ||
| Line 252: | Line 252: | ||
| # You can achieve the same using: | # You can achieve the same using: | ||
| # $transferOptions = New-Object WinSCP.TransferOptions | # $transferOptions = New-Object WinSCP.TransferOptions | ||
| - | # $transferOptions.IncludeMask = $fileName | + | # $transferOptions.FileMask = $fileName |
| # $session.SynchronizeDirectories( | # $session.SynchronizeDirectories( | ||
| # [WinSCP.SynchronizationMode]::Local, $localPath, $remotePath, | # [WinSCP.SynchronizationMode]::Local, $localPath, $remotePath, | ||
| Line 357: | Line 357: | ||
| // You can achieve the same using: | // You can achieve the same using: | ||
| // var transferOptions = WScript.CreateObject("WinSCP.TransferOptions"); | // var transferOptions = WScript.CreateObject("WinSCP.TransferOptions"); | ||
| - | // transferOptions.IncludeMask = fileName; | + | // transferOptions.FileMask = fileName; |
| // session.SynchronizeDirectories( | // session.SynchronizeDirectories( | ||
| // SynchronizationMode_Local, localPath, remotePath, false, false, SynchronizationCriteria_Time, | // SynchronizationMode_Local, localPath, remotePath, false, false, SynchronizationCriteria_Time, | ||
| Line 473: | Line 473: | ||
| ' Dim transferOptions | ' Dim transferOptions | ||
| ' Set transferOptions = WScript.CreateObject("WinSCP.TransferOptions") | ' Set transferOptions = WScript.CreateObject("WinSCP.TransferOptions") | ||
| - | ' transferOptions.IncludeMask = fileName | + | ' transferOptions.FileMask = fileName |
| ' session.SynchronizeDirectories( _ | ' session.SynchronizeDirectories( _ | ||
| ' SynchronizationMode_Local, localPath, remotePath, false, false, SynchronizationCriteria_Time, _ | ' SynchronizationMode_Local, localPath, remotePath, false, false, SynchronizationCriteria_Time, _ | ||