Differences
This shows you the differences between the selected revisions of the page.
| 2013-01-03 | 2013-04-30 | ||
| Restored revision 1348497361. Undoing revision 1357222300. (martin) (hidden) | Using camel case for PowerShell built-in constants as MS does (martin) | ||
| Line 253: | Line 253: | ||
| # $session.SynchronizeDirectories( | # $session.SynchronizeDirectories( | ||
| # [WinSCP.SynchronizationMode]::Local, $localPath, $remotePath, | # [WinSCP.SynchronizationMode]::Local, $localPath, $remotePath, | ||
| - | # $FALSE, $FALSE, [WinSCP.SynchronizationCriteria]::Time, | + | # $False, $False, [WinSCP.SynchronizationCriteria]::Time, |
| # $transferOptions).Check() | # $transferOptions).Check() | ||
| if ($session.FileExists($remotePath)) | if ($session.FileExists($remotePath)) | ||
| Line 262: | Line 262: | ||
| ("File {0} exists, local backup {1} does not" ` | ("File {0} exists, local backup {1} does not" ` | ||
| -f $remotePath, $localPath) | -f $remotePath, $localPath) | ||
| - | $download = $TRUE | + | $download = $True |
| } | } | ||
| else | else | ||
| Line 275: | Line 275: | ||
| "but remote file is newer ({2}) than local backup ({3})") ` | "but remote file is newer ({2}) than local backup ({3})") ` | ||
| -f $remotePath, $localPath, $remoteWriteTime, $localWriteTime) | -f $remotePath, $localPath, $remoteWriteTime, $localWriteTime) | ||
| - | $download = $TRUE | + | $download = $True |
| } | } | ||
| else | else | ||
| Line 283: | Line 283: | ||
| "but remote file is not newer ({2}) than local backup ({3})") ` | "but remote file is not newer ({2}) than local backup ({3})") ` | ||
| -f $remotePath, $localPath, $remoteWriteTime, $localWriteTime) | -f $remotePath, $localPath, $remoteWriteTime, $localWriteTime) | ||
| - | $download = $FALSE | + | $download = $False |
| } | } | ||
| } | } | ||