vscode-sftp icon indicating copy to clipboard operation
vscode-sftp copied to clipboard

SFTP: Sync Remote -> Local does not work :(

Open whittede opened this issue 1 year ago • 1 comments

Do you read the FAQ?

Describe the bug The SFTP: Sync Remote -> Local command doesn't seem to be working. It shows no files are present in the folder.

To Reproduce Steps to reproduce the behavior:

  1. Open a connection to a Wordpress site with a staging site. (Ensure everything connects properly.)
  2. Run the command >SFTP: Sync Remote -> Local
  3. No error appears, the file browser just appears to load and then it finishes and all folders are still blank.
  4. Check the folder's contents via a file manager like cPanel, and observe there are files in the folder, but they are not being pulled down to VS Code.

Expected behavior I expect all local files contained in the folder that I am right-clicking to be downloaded to the local folder when I run the SFTP: Sync Remote -> Local command. Instead they just all stay blank.

Screenshots See in this first image what the file structure contains when accessing it from cPanel: image

Now see how the folders remain empty even after syncing them using vscode-sftp: image

Desktop (please complete the following information):

  • OS: Windows 10
  • VSCode Version 1.77.3
  • Extension Version 1.16.1

Extension Logs from Startup - required sftp-log.txt

whittede avatar Apr 25 '23 22:04 whittede

The opposite doesn't work either. When you have a replicated directory (Remote:Local) and you delete a bunch of things locally, if you try to Sync - all the plugin does is to try uploading; file removals and local file changes are NOT taken into consideration.

A "sync" is NOT "upload" or "download" ! Either implement actual hash sum checks on files and proper sync logic (file create/delete) or change the tagline of your extension. As it is, the tagline:

sftp sync extension for VS Code

is plain wrong!

Chefaroon avatar Sep 24 '23 11:09 Chefaroon