Problem with using "Two-way synchronization with delete"

Advertisement

Pavel
Joined:
Posts:
1

Problem with using "Two-way synchronization with delete"

I've already spent days trying to solve the problem. I'm using this article
Two-way synchronization with delete with SFTP/FTP server

Everything works fine, but the problem occurs when deleting a file (either on the server or on the client) and then re-synchronizing it, I use this script in PowerShell:
powershell.exe -ExecutionPolicy Bypass -File "C:\Program Files (x86)\WinSCP\SynchronizeTwoWayDelete.ps1" -sessionUrl "ftp://pavel:4@weqweX@9.9.1.6:442/" -localPath "D:\BASE" -remotePath "BASE" -listPath "D:\TwoWayDelete\pavel@9.9.1.6.txt"
In PowerShell, I get the following errors:
Connecting...
Comparing files...
Synchronizing 1 change(s)...
D:\BASE\* <== BASE/file.txt ...
Error: Exception calling "Resolve" with "1" argument(s): "Can't get attributes of file 'BASE/file1.txt'.
Could not retrieve file information
Can't check for file existence"
Please tell me how to solve this problem?

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
40,360
Location:
Prague, Czechia

Re: Problem with using "Two-way synchronization with delete"

Your server does not allow WinSCP to retrieve file information using MLST command, despite previously claiming support for the command.
Please get the server configured to behave properly.
Or you may try to configure WinSCP not to use MLST/MLSD. It should then fall back to MDTM/SIZE. But the question is whether your server won't haver the same problem with these.

Reply with quote

Advertisement

You can post new topics in this forum