Skip to content

Commit

Permalink
Fixex #21, Sync R2L does not delete folder
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasz.wronski committed Jan 14, 2016
1 parent 1260089 commit 731fc65
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ Use at your own risk - I do not guarantee that it will work correctly!

## Version history

- 0.2.7
- Fix for [Sync R2L does not delete folder](https://github.com/lukasz-wronski/vscode-ftp-sync/issues/21)
- 0.2.6
- Fix for [Error: EXDEV: cross-device link not permitted on mounted drive](https://github.com/lukasz-wronski/vscode-ftp-sync/issues/6)
- 0.2.5
Expand Down
2 changes: 1 addition & 1 deletion modules/sync-helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ var executeSyncLocal = function(sync, options, callback) {
if(err) callback(err); else executeSyncLocal(sync, options, callback);
});
} else if(sync.dirsToRemove.length > 0) {
var dirToRemove = sync.dirToRemove.pop();
var dirToRemove = sync.dirsToRemove.pop();
var localPath = path.join(options.localPath, dirToRemove);
fs.rmdir(localPath, function(err) {
if(err) callback(err); else executeSyncLocal(sync, options, callback);
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.6",
"version": "0.2.7",
"publisher": "lukasz-wronski",
"engines": {
"vscode": "^0.10.1"
Expand Down

0 comments on commit 731fc65

Please sign in to comment.