$session.SynchronizeDirectories left file.filepart and file and throws the error
While doing the $session.SynchronizeDirectories operation, it seems at times the target directory consists of the file name as well as filename.filepart files.
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.
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.