Thank you
- igor123
No. In the previous version WinSCP reached the occupied file and if WinSCP could not copy it, WinSCP stopped working and gave an error. In the new version of WinSCP it comes to this file and hangs. And the error does not give out and the work does not stop. What to do?
QueryReceived
after calling Open
.
add_QueryReceived
before Open
.
OK, so you were asking, if your code is correct? Yes, it's look good to me.
Another question: what should be the code to enable this function? Such?
Sorry, I do not understand, what you mean by "enable this function".
Another question: what should be the code to enable this function? Such?
function func_sync {
$session.add_QueryReceived( { $_.Continue() } )
$synchronizationResult =
$session.SynchronizeDirectories([WinSCP.SynchronizationMode]::Remote, $args[0], $args[1], $True)
# Throw on any error
$synchronizationResult.Check()
}
Hello. I sent you a letter.
.NET assembly now supports custom error handling nativelly.
If you are interested in testing this functionality, send me an email, so I can send you back a development version of WinSCP. Please include link back to this topic in your email. Also note in this topic that you have sent the email. Thanks.
You will find my address (if you log in) in my forum profile.
Thanks, but it's the same as calling the function SynchronizeDirectories(). And my problem is not solved in any way, because if the script can not copy the file, it will also give an error and stop working
unfortunately I do not know how
That is, this error can not bypass?
SynchronizeDirectories
call.
Found that in scripts you can use "option batch continue". But how to do this in the .NET assembly?