vscode-sftp
vscode-sftp copied to clipboard
SFTP: Sync Remote -> Local does not work :(
Do you read the FAQ?
- [X] Yes.
- [ ] I am going to read now.
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:
- Open a connection to a Wordpress site with a staging site. (Ensure everything connects properly.)
- Run the command
>SFTP: Sync Remote -> Local
- No error appears, the file browser just appears to load and then it finishes and all folders are still blank.
- 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:
Now see how the folders remain empty even after syncing them using vscode-sftp:
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
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!