I think I have found a bug, which not necessarily connected to Secure FTP plugin, but probably TC's remote file handling mechanism. (I have experienced the same with its 3rd party ancient predecessor "Secure FTP Connections" plugin).
So when I connect to SFTP with Christian Ghisler's Secure FTP plugin (btw many thanks for its implementation!) and open a remote file for edit (with F4, I'm using Notepad++ configured as editor) then TC downloads the file to a directory like this: c:\Users\<user>\AppData\Local\Temp\_tcx\0\Secure FTP\<SFTP_session_name>\<remote_path_on_server>\<filename>.<ext> and it opens the external editor to edit the given file. After this, TC watches the file for changes and reuploads the file if any changes made.
When I make some changes, and save in Notepad++, the file is saved (to c:\Users\<user>\AppData\Local\Temp\_tcx\0\Secure FTP\<SFTP_session_name>\<remote_path_on_server>\<filename>.<ext>), and TC detects the change, and tries to upload it to the remote server, but sometimes the connection might be broken (due to timeout usually, etc).
In these cases, TC provides an error message that it couldn't upload the file and asks if I want to keep it locally anyway. I don't know the exact message in English, but in Hungarian the WCMD_HUN.LNG contains the exact phrase in this line:
1230="Nem lehet újra feltölteni a fájlt - maradjon a megváltozott fájl '%s'?"
If I answer with Yes, then TC keeps the file at c:\Users\<user>\AppData\Local\Temp\_tcx\0\Secure FTP\<SFTP_session_name>\<remote_path_on_server>\<filename>.<ext>
This is good practise to not lose my changes. However, when I reestablish my broken SFTP connection and download the same file from the same remote server's same path, then TC overwrites the locally kept file under the same path, but when I do any changes to it, it just doesn't uploads the file. For me it seems like it cannot watch the file for some reason.
In the SFTP command window (wcftplog.000) I see no upload attempt, only the fact that the file downloaded, for example:
Download file: /<remote_path>/<remotefile>
When the connection identified as broken during the first and only upload attempt, I see nothing extraordinary in the sftp commands:
Code: Select all
Upload file: /<remote_path>/mydir/<remote_file>
Get directory: \<remote_path>
Connection lost, trying to reconnect!
========================
Connecting to: <ip>
<it successfully reconnects>
Can you please take a look into this? When working with multiple remote files its painful to close each in the editor, and restart TC and reopen all the remote files for editing.
Edit: I'm using version 11.56, but it was the same in many older versions since years (I think), I have just never opened a bug report. Plugin version is the latest: 3.05 final


