Differences
This shows you the differences between the selected revisions of the page.
2020-07-15 | 2020-07-15 | ||
Bug 1887: Display progress of synchronization in Keep local directory up to date extension (martin) | decreasing version requirement to allow testing + removing unused code (martin) | ||
Line 27: | Line 27: | ||
# @version 7 | # @version 7 | ||
# @homepage ~~SELF~~ | # @homepage ~~SELF~~ | ||
- | # @require WinSCP 5.18 | + | # @require WinSCP 5.17 |
# @option - -run group "Directories" | # @option - -run group "Directories" | ||
# @option RemotePath -run textbox "&Watch for changes in the remote directory:" "!/" | # @option RemotePath -run textbox "&Watch for changes in the remote directory:" "!/" | ||
Line 94: | Line 94: | ||
$session = New-Object WinSCP.Session | $session = New-Object WinSCP.Session | ||
- | # Optimization | ||
- | # (do not waste time enumerating files, if you do not need to scan for deleted files) | ||
- | if ($delete) | ||
- | { | ||
- | $localFiles = Get-ChildItem -Recurse -Path $localPath | ||
- | } | ||
- | |||
try | try | ||
{ | { |