Natizyskunk / vscode-sftp

Super fast sftp/ftp extension for VS Code
Other
373 stars 68 forks source link

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

Open whittede opened 1 year ago

whittede commented 1 year ago

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):

Extension Logs from Startup - required sftp-log.txt

Chefaroon commented 9 months ago

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!