satiromarra / vscode-sftp

Super fast sftp/ftp extension for VS Code
Other
23 stars 3 forks source link

Download does work when local copy has been changed #98

Open blastanders opened 3 months ago

blastanders commented 3 months ago

Do you read the FAQ?

Describe the bug The download feature doesn't work on files that were modified locally.

To Reproduce Steps to reproduce the behavior:

  1. Download a file from the server.
  2. Modify the downloaded copy of the file but dont save and/or upload, so it stays unsaved and unuploaded.
  3. Modify the remote file either using ssh or from a different machine
  4. On the original computer used in step 1 and 2, try to download the file again without closing it.
  5. The status bar reports downloaded, but the file didnt refresh from the server.

Expected behavior When trying to download a file from the server. The module should download it and overwrites the local copy no matter the local copy saved/modification status. Or at least not say "Done [filename]".

Desktop (please complete the following information):

Extension Logs from Startup - required [2024-04-02 12:52:01] [trace] run command 'Download File' [2024-04-02 12:52:01] [trace] handle download file for c:\Users[...]\public_html\test.php [2024-04-02 12:52:01] [debug] > PASV [2024-04-02 12:52:01] [debug] < '227 Entering Passive Mode (123.123.123.123,153,45).\r\n' [2024-04-02 12:52:01] [debug] > LIST -al /public_html [2024-04-02 12:52:01] [debug] < '150 Opening BINARY mode data connection for file list\r\n' [2024-04-02 12:52:01] [debug] < '226 Transfer complete\r\n' [2024-04-02 12:52:01] [debug] > PASV [2024-04-02 12:52:01] [debug] < '227 Entering Passive Mode (123.123.123.123,128,135).\r\n' [2024-04-02 12:52:01] [debug] > RETR /public_html/test.php [2024-04-02 12:52:01] [debug] < '150 Opening BINARY mode data connection for /public_html/test.php (2740 bytes)\r\n' [2024-04-02 12:52:01] [debug] < '226 Transfer complete\r\n' [2024-04-02 12:52:01] [debug] > MODE S [2024-04-02 12:52:01] [debug] < '200 Mode set to S\r\n' [2024-04-02 12:52:01] [info] remote ➞ local c:\Users[...]\public_html\test.php