Differences
This shows you the differences between the selected revisions of the page.
2024-02-15 | 2024-04-25 | ||
6.3 stable released (martin) | no summary (87.191.137.102) (hidden) (untrusted) | ||
Line 34: | Line 34: | ||
XML log elements: ''[[logging_xml#download|download]]'' (with ''[[#local|local]]'' or ''[[#both|both]]''), ''[[logging_xml#upload|upload]]'' (with ''[[#remote|remote]]'' or ''both''), ''[[logging_xml#mkdir|mkdir]]'', ''[[logging_xml#touch|touch]]'' (with ''remote'' or ''both''), ''[[logging_xml#chmod|chmod]]'' (with ''remote'' or ''both'' and ''[[#permissions|-permissions]]''), ''[[logging_xml#rm|rm]]'' (with ''remote'' and ''[[#delete|-delete]]'') | XML log elements: ''[[logging_xml#download|download]]'' (with ''[[#local|local]]'' or ''[[#both|both]]''), ''[[logging_xml#upload|upload]]'' (with ''[[#remote|remote]]'' or ''both''), ''[[logging_xml#mkdir|mkdir]]'', ''[[logging_xml#touch|touch]]'' (with ''remote'' or ''both''), ''[[logging_xml#chmod|chmod]]'' (with ''remote'' or ''both'' and ''[[#permissions|-permissions]]''), ''[[logging_xml#rm|rm]]'' (with ''remote'' and ''[[#delete|-delete]]'') | ||
- | ===== [[examples]] Examples ===== | + | $synchronizationResult = |
- | <code winscp> | + | ···$session.SynchronizeDirectories( |
- | synchronize both | + | ········[WinSCP.SynchronizationMode]::Both, "d:\www", "/home/martin/public_html", $False) |
- | </code> | + | # Throw on any error to emulate the (default) "option batch abort" mode |
- | <code winscp> | + | $synchronizationResult.Check() |
- | synchronize remote -delete d:\www /home/martin/public_html | + | |
- | </code> | + | |
- | <code winscp> | + | |
- | synchronize both -filemask="|*.bak; *.tmp" | + | |
- | </code> | + | |
===== [[net]] Converting to .NET Assembly ===== | ===== [[net]] Converting to .NET Assembly ===== |