tomohulk / WinSCP

WinSCP PowerShell Wrapper Module
GNU General Public License v3.0
151 stars 29 forks source link

Sync-WinSCPPath Option batch continue + option confirm off #152

Closed nascentt closed 10 months ago

nascentt commented 10 months ago

I've been searching for over an hour now and I can't seem to find out how to use:

option batch continue
option confirm off

with Sync-WinSCPPath

is this possible? How can it be done?

martinprikryl commented 10 months ago

Those are scripting commands. To learn how to map them to WinSCP .NET assembly, see: https://winscp.net/eng/docs/scriptcommand_option#net How that maps to this module is yet another thing :)

tomohulk commented 10 months ago

the option confirm off would be the way it is working by default so no need to specify that option.

I don't really have any plans to impliment the option batch continue. This module is more of a wrapper, so there isn't a lot of core logic. it looks like based on this you could implement it yourself, the Session object will already exist from the New-WinSCPSession cmdlet so you could just add the event handler: https://winscp.net/eng/docs/library_example_recursive_download_custom_error_handling