Skip to content

Commit

Permalink
fixed #14, cant download
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasz.wronski committed Jan 10, 2016
1 parent 0fe13e5 commit 8708760
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ Use at your own risk - I do not guarantee that it will work correctly!

## Version history

- 0.2.3
- Fix for [Cant download](https://github.com/lukasz-wronski/vscode-ftp-sync/issues/14)
- 0.2.2
- Fix for [Upload on save don't track ignored files](https://github.com/lukasz-wronski/vscode-ftp-sync/issues/15)
- Added support for [ftp passive mode](https://github.com/lukasz-wronski/vscode-ftp-sync/issues/16)
Expand Down
3 changes: 2 additions & 1 deletion modules/sync-helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ var listRemoteFiles = function(remotePath, callback, originalRemotePath) {

var finish = function() {
result.forEach(function(item) {
item.name = item.name.replace(originalRemotePath, "");
if(_.startsWith(originalRemotePath, item.name))
item.name = item.name.replace(originalRemotePath, "");
if(item.name[0] == "/") item.name = item.name.substr(1);
if(onPrepareRemoteProgress) onPrepareRemoteProgress(item.name);
});
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "ftp-sync",
"description": "Auto sync your work to remote FTP server",
"version": "0.2.2",
"version": "0.2.3",
"publisher": "lukasz-wronski",
"engines": {
"vscode": "^0.10.1"
Expand Down

0 comments on commit 8708760

Please sign in to comment.