Re: Does an exclude mask prevent a matching file on the remote server from being deleted?
No it won't get deleted.
It's not documented specifically for the scripting command. But in general for synchronization, see:
https://winscp.net/eng/docs/ui_synchronize#file_mask
It's not documented specifically for the scripting command. But in general for synchronization, see:
https://winscp.net/eng/docs/ui_synchronize#file_mask