-
Notifications
You must be signed in to change notification settings - Fork 267
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
FTP protocol: The remote path is ignored and begins to download from root. #80
Comments
The logs are insufficient. I need full logs. |
Same problem |
Please provide me the logs. |
[info]: config at /home/home/projects/****************** { [debug]: task: remove /www/******************/.git/index.lock [debug]: task: upload /home/home/projects/******************/.git/index.lock [debug]: task: remove /www//.git/index.lock [debug]: task: download /home/home/projects/******************
|
The logs seem are unrelated to your problems. |
I have the same problem. It's just broken. Tested on many machines. |
@xVinniVx Please try debug-pacakge and send me the logs. |
same here with ftp protocol. Yet ftp-simple plugin works fine. |
@andreyorst Could you help me to debug this problem? I will make a debug-package with verbose logs. You only need to reproduce the problem and give me the logs. |
@liximomo sure! |
@andreyorst Thanks! Please try with debug-pacakge and send me the logs. |
@andreyorst I fixed a possible bug! Please try debug-pacakge again see if it gets solved. |
@liximomo I'm currently little busy, so I'll try that in a couple of hours |
@liximomo Well now I't isn'y spamming all root content in my $HOME, but it's not working either.
And endless NOOP messages then. |
Try to config |
Seems to work now! Edit: Or not. This error appeared again. Even with My current config is: {
"protocol": "ftp",
"passive": true,
"port": 21,
"host": "ftp",
"username": "username",
"password": "password",
"remotePath": "/home/username/ftp_base",
"uploadOnSave": true,
"ignore": [
".vnc",
".vscode",
".git",
"*.o",
".DS_Store"
]
} |
well, I've figured out that this errors are random. If I try to download again it may work. Actually now I able to download a remote directory, edit file and upload it back, but downloading doesn't always work. Edit: I discovered that i need to hit |
Set |
Actually it is still here. And now it can't set connection. |
Set
I believe this error is just a random network problem. |
Ok In terms of issue topic
01dcbc9 seems to fix that, and my download problems may be a different story. |
Thanks for your help! This issue can be closed now. 🎉🎉🎉 |
@liximomo when extension will be updated in marketplace? |
@andreyorst The extension has updated in the marketplace. |
Great! Thanks! |
Expected Behaviour
I am expecting the same result as when I am using the SFTP protocol, the download command is only getting the files from the remote path.
Actual Behaviour
When I am using the SFTP protocol everything works fine. But when I am switching to the FTP protocol and beginning to download the files, it is getting all the files from the root.
An example is that I want to download the files from the following directory: "/home/workspace/a". I set the remotePath to the above path but when I start the download, it is getting the files from the root.
Also, when it is getting the files from the root, it is saving the files in the parent folder relatively to the context path.
I have tested two diffrent servers to connect to and the same problem occurs.
Steps to Reproduce the Problem
3 Download the files to a folder on the computer.
Requisites (important to diagnose the problem!)
Extension Logs
[info]: config at /Users/adamjonsson/Desktop/ElimTest {
"host": "",
"port": 21,
"username": "",
"password": "",
"protocol": "ftp",
"agent": null,
"privateKeyPath": null,
"passphrase": null,
"passive": false,
"interactiveAuth": false,
"remotePath": "/www/",
"uploadOnSave": false,
"syncMode": "update",
"watcher": {
"files": false,
"autoUpload": false,
"autoDelete": false
},
"ignore": [
"/Users/adamjonsson/Desktop/ElimTest//.vscode/",
"/Users/adamjonsson/Desktop/ElimTest//.git/",
"/Users/adamjonsson/Desktop/ElimTest//.DS_Store",
"/www//.vscode/",
"/www//.git/",
"/www/*/.DS_Store"
],
"context": "/Users/adamjonsson/Desktop/ElimTest"
}
[debug]: task: download /Users/adamjonsson/Desktop/ElimTest
[debug]: conncet to remote
End of log. After the sftp-plugin have dowloaded almost every folder from the root directory it is getting stuck at some random folder.
Specifications
The text was updated successfully, but these errors were encountered: