Differences
This shows you the differences between the selected revisions of the page.
| 2017-10-03 | 2017-10-03 | ||
| code wrapping for new design 2 (martin) | unnecessary line continuation (martin) | ||
| Line 135: | Line 135: | ||
| ' You can achieve the same using: | ' You can achieve the same using: | ||
| - | ' session.SynchronizeDirectories( _ | + | ' session.SynchronizeDirectories( |
| - | ' SynchronizationMode.Local, localPath, remotePath, False, False, _ | + | ' SynchronizationMode.Local, localPath, remotePath, False, False, |
| - | ' SynchronizationCriteria.Time, _ | + | ' SynchronizationCriteria.Time, |
| ' New TransferOptions With { .FileMask = fileName }).Check | ' New TransferOptions With { .FileMask = fileName }).Check | ||
| If session.FileExists(remotePath) Then | If session.FileExists(remotePath) Then | ||
| Line 150: | Line 150: | ||
| If remoteWriteTime > localWriteTime Then | If remoteWriteTime > localWriteTime Then | ||
| - | Console.WriteLine( _ | + | Console.WriteLine( |
| - | "File {0} as well as local backup {1} exist, " & _ | + | "File {0} as well as local backup {1} exist, " & |
| - | "but remote file is newer ({2}) than " & _ | + | "but remote file is newer ({2}) than " & |
| - | "local backup ({3})", _ | + | "local backup ({3})", |
| remotePath, localPath, remoteWriteTime, localWriteTime) | remotePath, localPath, remoteWriteTime, localWriteTime) | ||
| download = True | download = True | ||
| Else | Else | ||
| - | Console.WriteLine( _ | + | Console.WriteLine( |
| - | "File {0} as well as local backup {1} exist, " & _ | + | "File {0} as well as local backup {1} exist, " & |
| - | "but remote file is not newer ({2}) than " & _ | + | "but remote file is not newer ({2}) than " & |
| - | "local backup ({3})", _ | + | "local backup ({3})", |
| remotePath, localPath, remoteWriteTime, localWriteTime) | remotePath, localPath, remoteWriteTime, localWriteTime) | ||
| download = False | download = False | ||