Skip to content

Commit

Permalink
Fully implemented spmjs#61
Browse files Browse the repository at this point in the history
  • Loading branch information
VonLatvala committed Mar 4, 2018
1 parent 5e3f332 commit 4475da5
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions lib/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,18 @@ Client.prototype.download = function(src, dest, callback) {
});
};

Client.prototype.unlink = function (filename, callback) {
var self = this;
self.sftp(function (err, sftp) {
if (err) {
return callback(err);
}
sftp.unlink(filename,function(err){
return callback(err);
})
});
}

exports = module.exports = new Client();
exports.Client = Client;

Expand Down

0 comments on commit 4475da5

Please sign in to comment.