Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)


Topic review


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.

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@" -localPath "D:\BASE" -remotePath "BASE" -listPath "D:\TwoWayDelete\pavel@"

In PowerShell, I get the following errors:

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?