Permalink
Browse files

Merge pull request #64 from tp/patch-1

Fix connection.js for use in strict mode
  • Loading branch information...
2 parents 2c251e6 + 8f0d2a6 commit f9d35671ab06532d9d86965994748b9991f21b5a @mscdex committed Oct 29, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/connection.js
View
@@ -667,7 +667,7 @@ FTP.prototype.mkdir = function(path, recursive, cb) { // MKD is optional
if (path.indexOf('/') === -1)
this._send('MKD ' + path, cb);
else {
- function nextDir() {
+ var nextDir = function() {
if (++i === dirslen) {
// return to original working directory
return self._send('CWD ' + owd, cb, true);

0 comments on commit f9d3567

Please sign in to comment.