Skip to content
Snippets Groups Projects
Commit 1b2b1683 authored by deuce's avatar deuce
Browse files

CDUP requires a response.

parent 851d3c55
No related branches found
No related tags found
No related merge requests found
...@@ -68,7 +68,7 @@ FTP.prototype.cdup = function() ...@@ -68,7 +68,7 @@ FTP.prototype.cdup = function()
var rstr; var rstr;
var ret; var ret;
rstr = this.cmd("CDUP"); rstr = this.cmd("CDUP", true);
ret = parseInt(rstr, 10); ret = parseInt(rstr, 10);
if (ret !== 200) if (ret !== 200)
return false; return false;
...@@ -108,7 +108,7 @@ FTP.prototype.pwd = function() ...@@ -108,7 +108,7 @@ FTP.prototype.pwd = function()
rstr = this.cmd("PWD", true); rstr = this.cmd("PWD", true);
ret = parseInt(rstr, 10); ret = parseInt(rstr, 10);
if (ret === 257) if (ret === 257)
return rstr.replace(/^257 "(.*)".*?$/, '$1'); return rstr.replace(/^257 "(.*)".*?$/, "$1");
return null; return null;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment