diff --git a/lib/controller.js b/lib/controller.js index 2dfc231..161bef6 100644 --- a/lib/controller.js +++ b/lib/controller.js @@ -1,7 +1,7 @@ /*global require, exports, console, spawn: true */ var spawn = require('child_process').spawn, - path = require('path'), + fs = require('fs'), Log = require('./log').Log, prototype = {}; @@ -161,7 +161,7 @@ function scp(local, remote, callback, exitCallback) { user = this.user, options = this.scpOptions, address = this.address; - path.exists(local, function (exists) { + fs.exists(local, function (exists) { if (exists) { var reference = user + '@' + address + ':' + remote, args = ['-r', local, reference],