$session.SynchronizeDirectories left file.filepart and file and throws the error
And WinSCP is trying to rename the .filepart to original file and complains that the file already exists, Error code:4.
Any idea, why it is creating the filename and .filepart together? ideally .filepart would be the first. It does every time though but at times i see this case.
Because of this error, it doesn't synchronize any new files present in the source directory. I used $synchronizationResult.Check()
PS: The user does not have overwrite permission on the target directory and therefore the Error Code:4 has been thrown.
Any advice on this? Thanks.