Re: Powershell SynchronizeDirectories Failing with a Permission Error on a Single File
Session.QueryReceived
has been added in 5.12.1. Download the latest version of WinSCP.
https://winscp.net/tracker/1594
Session.QueryReceived
has been added in 5.12.1. Download the latest version of WinSCP.
Failures : {WinSCP.SessionRemoteException: Cannot open remote file '/file.log'.
Permission denied.
Error code: 3
Error message from server: Permission denied}
. 2018-09-28 16:43:37.892 Asking user:
. 2018-09-28 16:43:37.892 Cannot open remote file '/file.log'. ("Permission denied.
. 2018-09-28 16:43:37.892 Error code: 3
. 2018-09-28 16:43:37.892 Error message from server: Permission denied")
< 2018-09-28 16:43:37.892 Script: Cannot open remote file '/file.log'.
< 2018-09-28 16:43:37.892 Script: Permission denied.
< 2018-09-28 16:43:37.892 Error code: 3
< 2018-09-28 16:43:37.892 Error message from server: Permission denied
* 2018-09-28 16:43:37.892 (EScpSkipFile) Cannot open remote file '/file.log'.
* 2018-09-28 16:43:37.892 Permission denied.
* 2018-09-28 16:43:37.892 Error code: 3
* 2018-09-28 16:43:37.892 Error message from server: Permission denied
. 2018-09-28 16:43:37.892 Copying finished: Transferred: 0, Elapsed: 0:00:00, CPS: 0/s
. 2018-09-28 16:43:37.892 Script: Failed
> 2018-09-28 16:43:43.958 Script: exit
. 2018-09-28 16:43:43.968 Script: Exit code: 1
Method invocation failed because [WinSCP.Session] does not contain a method named 'add_QueryReceived'.