{"action":"created","issue":{"url":"https://api.github.com/repos/liximomo/vscode-sftp/issues/80","repository_url":"https://api.github.com/repos/liximomo/vscode-sftp","labels_url":"https://api.github.com/repos/liximomo/vscode-sftp/issues/80/labels{/name}","comments_url":"https://api.github.com/repos/liximomo/vscode-sftp/issues/80/comments","events_url":"https://api.github.com/repos/liximomo/vscode-sftp/issues/80/events","html_url":"https://github.com/liximomo/vscode-sftp/issues/80","id":284302922,"number":80,"title":"FTP protocol: The remote path is ignored and begins to download from root.","user":{"login":"AdamJonsson","id":13873828,"avatar_url":"https://avatars1.githubusercontent.com/u/13873828?v=4","gravatar_id":"","url":"https://api.github.com/users/AdamJonsson","html_url":"https://github.com/AdamJonsson","followers_url":"https://api.github.com/users/AdamJonsson/followers","following_url":"https://api.github.com/users/AdamJonsson/following{/other_user}","gists_url":"https://api.github.com/users/AdamJonsson/gists{/gist_id}","starred_url":"https://api.github.com/users/AdamJonsson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AdamJonsson/subscriptions","organizations_url":"https://api.github.com/users/AdamJonsson/orgs","repos_url":"https://api.github.com/users/AdamJonsson/repos","events_url":"https://api.github.com/users/AdamJonsson/events{/privacy}","received_events_url":"https://api.github.com/users/AdamJonsson/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2017-12-23T11:59:34Z","updated_at":"2018-03-20T09:54:14Z","closed_at":null,"author_association":"NONE","body":"## Expected Behaviour\r\n\r\nI 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. \r\n\r\n## Actual Behaviour\r\n\r\nWhen 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. \r\n\r\nAn 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. \r\n\r\nAlso, when it is getting the files from the root, it is saving the files in the parent folder relatively to the context path. \r\n\r\nI have tested two diffrent servers to connect to and the same problem occurs. \r\n\r\n## Steps to Reproduce the Problem\r\n\r\n  1. Use the FTP protocol.\r\n  2. Specify the remote path (Not the root).\r\n  3 Download the files to a folder on the computer. \r\n\r\n## Requisites (**important to diagnose the problem!**)\r\n\r\n\r\n  ### Extension Logs\r\n[info]: config at /Users/adamjonsson/Desktop/ElimTest {\r\n    \"host\": \"***\",\r\n    \"port\": 21,\r\n    \"username\": \"***\",\r\n    \"password\": \"***\",\r\n    \"protocol\": \"ftp\",\r\n    \"agent\": null,\r\n    \"privateKeyPath\": null,\r\n    \"passphrase\": null,\r\n    \"passive\": false,\r\n    \"interactiveAuth\": false,\r\n    \"remotePath\": \"/www/\",\r\n    \"uploadOnSave\": false,\r\n    \"syncMode\": \"update\",\r\n    \"watcher\": {\r\n        \"files\": false,\r\n        \"autoUpload\": false,\r\n        \"autoDelete\": false\r\n    },\r\n    \"ignore\": [\r\n        \"/Users/adamjonsson/Desktop/ElimTest/**/.vscode/**\",\r\n        \"/Users/adamjonsson/Desktop/ElimTest/**/.git/**\",\r\n        \"/Users/adamjonsson/Desktop/ElimTest/**/.DS_Store\",\r\n        \"/www/**/.vscode/**\",\r\n        \"/www/**/.git/**\",\r\n        \"/www/**/.DS_Store\"\r\n    ],\r\n    \"context\": \"/Users/adamjonsson/Desktop/ElimTest\"\r\n}\r\n\r\n[debug]: task: download /Users/adamjonsson/Desktop/ElimTest\r\n[debug]: conncet to remote\r\n\r\nEnd of log. After the sftp-plugin have dowloaded almost every folder from the root directory it is getting stuck at some random folder.\r\n\r\n## Specifications\r\n\r\n  - Version: 0.9.5\r\n  - Platform: macOS 10.13.2\r\n"},"comment":{"url":"https://api.github.com/repos/liximomo/vscode-sftp/issues/comments/374537732","html_url":"https://github.com/liximomo/vscode-sftp/issues/80#issuecomment-374537732","issue_url":"https://api.github.com/repos/liximomo/vscode-sftp/issues/80","id":374537732,"user":{"login":"andreyorst","id":19470159,"avatar_url":"https://avatars3.githubusercontent.com/u/19470159?v=4","gravatar_id":"","url":"https://api.github.com/users/andreyorst","html_url":"https://github.com/andreyorst","followers_url":"https://api.github.com/users/andreyorst/followers","following_url":"https://api.github.com/users/andreyorst/following{/other_user}","gists_url":"https://api.github.com/users/andreyorst/gists{/gist_id}","starred_url":"https://api.github.com/users/andreyorst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andreyorst/subscriptions","organizations_url":"https://api.github.com/users/andreyorst/orgs","repos_url":"https://api.github.com/users/andreyorst/repos","events_url":"https://api.github.com/users/andreyorst/events{/privacy}","received_events_url":"https://api.github.com/users/andreyorst/received_events","type":"User","site_admin":false},"created_at":"2018-03-20T09:54:14Z","updated_at":"2018-03-20T09:54:14Z","author_association":"NONE","body":"@liximomo sure!"}}
{"actor":{"display_login":"andreyorst"}}