Differences
This shows you the differences between the selected revisions of the page.
2013-01-31 | 2013-07-23 | ||
suggest using .NET (martin) | library_example_delete_after_successful_download (martin) | ||
Line 14: | Line 14: | ||
Perform the synchronization using ''[[scriptcommand_synchronize|synchronize]]'' command. Make sure the script generates [[logging_xml|XML log file]]. You can then [[logging_xml#parse|parse]] the log file to enumerate files that got successfully transferred, and use the list, to generate script to delete the source copies. | Perform the synchronization using ''[[scriptcommand_synchronize|synchronize]]'' command. Make sure the script generates [[logging_xml|XML log file]]. You can then [[logging_xml#parse|parse]] the log file to enumerate files that got successfully transferred, and use the list, to generate script to delete the source copies. | ||
- | It might be easier for you to use [[library|WinSCP .NET assembly]] for such task. Handle ''[[library_session_filetransferred|Session.FileTransferred]]'' event, and use ''[[library_session_synchronizedirectories|Session.SynchronizeDirectories]]'' method followed by ''[[library_session_removefiles|Session.RemoveFiles]]''. | + | It might be easier for you to use [[library|WinSCP .NET assembly]] for such task. See example [[library_example_delete_after_successful_download|Deleting remote files after successful remote to local synchronization]]. |
~~NOTOC~~ | ~~NOTOC~~ | ||