-
Notifications
You must be signed in to change notification settings - Fork 277
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can not clone the whole remote folder to local #64
Comments
Just |
@liximomo I did that, but it didn't work. It created folders but no files were downloaded. It was the latest version downloaded directly from VSCode (yesterday). VSCode version was the latest too, downloaded from the official website yesterday too. I ended up creating a ZIP file in the server and downloaded that (these were A LOT of files, 10 thousand or so). |
There maybe a bug. It works well for me. Can you provide me the logs? Preference -> setting -> sftp.printDebugLog to true, then reload vscode, reproduce the problem, get the logs(view -> output-> sftp) |
Hello again, this is the log output:
It is stuck retrieving directory
Maybe a bug with empty files? Anyway, if I do right-click that So far it has only created the directory structure, but without any files: This is the server status of directories (in this case,
|
I noticed that, with different SFTP: Download operations, it gets stuck "retrieving" different folders, not only that
On the remote side, the result is:
|
What is your server OS? The sftp will download files in parallel. Please check the maximum number of open files of your server is greater than 512. |
@liximomo it's macOS High Sierra (10.13.2). I did run the commands from the known issues (both in the server and client). I know it's weird. That |
The upcoming version(0.9.0) will allow you to set I will make a debug-package for you to debug the download problem. |
Try debug-pacakge and give me some feedbacks. |
@alejandroivan You can config the localPath with sftp 0.9.0! |
@liximomo thanks! Sorry for not being able to answer earlier, I've been with lots of work these two past weeks. I unfortunately deleted some files on the remote path and then synced without issues. It must have been the number of files and several folder levels. At least it is working now without that Thanks for your help! EDIT: It would probably be a good idea to print every file that's being fetched real time. When it's finished, I'm never sure if it failed or not, so I have to check a couple files to be sure. |
Also having issues with the same goal, but the result is slightly different on my endpoint. The probem for me is, it's not downloading the entire folder. It's just downloading the subdirectories inside the root directory. Files within the root directory, e.g. '/var/www/projectname/' aren't being downloaded. I'm on Windows 10 btw. // Edit: |
@HakuDouga |
I am having this problem as well, W10 VS Code 1.20.1 Extension version 1.0.4 When I try to download at the root I get just folder structure. I then tried to download each folder with no luck. After enabling debug log I am able to download the sub folders however, I cant get the files in the root. I eventually found out the host we were using was denying permissions of some of the folders. as soon as SFTP ran into the permission denied error it would stop. |
I have the same issue as @Chrissteven81. Spamming {
"protocol": "ftp",
"passive": false,
"port": 21,
"host": "ftp",
"username": "username",
"password": "password",
"remotePath": "/home/username/my_huge_project",
"uploadOnSave": true,
"downloadOnOpen": true,
"concurrency": 1,
"syncMode": "full",
"secure": false,
"ignore": [
".vnc",
".vscode",
".git",
"*.o",
"a TON of ignore items here",
".DS_Store"
]
} I have a lot of ignore items in the list. About 100 already, I really don't need those files, because it's a compile files, build scripts, etc. It downshiftes amount of files to minimum (about 5k). But can't still download them from remote. The plugin shows a message in statusline: Also, I still experience error, as I mentioned in #80 (comment):
Can't this be the issue? Again, I can test everything and provide logs. |
Expected Behavior
Clone (recursively) the full remote folder, to have a 1:1 copy.
Actual Behavior
Only downloads selected folders, but when not selecting any, it should recursively download everything inside the currently seen folder (root of the project), just like when selecting one folder and running SFTP: Download.
Steps to Reproduce the Problem
2a. Cmd+Shift+P --> SFTP: Download.
2b. Cmd+Shift+P --> SFTP: Sync remote to local.
Requisites (important to diagnose the problem!)
This is probably a feature request rather than a bug (or am I missing something?).
Extension Logs
N/A.
Specifications
The text was updated successfully, but these errors were encountered: