Skip to content

Commit

Permalink
Change command name to 'logout' and document in README.MD
Browse files Browse the repository at this point in the history
  • Loading branch information
Arthur Eyckerman committed May 20, 2014
1 parent 9d6a05c commit e56c104
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Expand Up @@ -154,6 +154,8 @@ Methods

* **rename**(< _string_ >oldPath, < _string_ >newPath, < _function_ >callback) - _(void)_ - Renames `oldPath` to `newPath` on the server. `callback` has 1 parameter: < _Error_ >err.

* **logout**(< _function_ >callback) - _(void)_ - Logout the user from the server. `callback` has 1 parameter: < _Error_ >err.

* **delete**(< _string_ >path, < _function_ >callback) - _(void)_ - Deletes a file, `path`, on the server. `callback` has 1 parameter: < _Error_ >err.

* **cwd**(< _string_ >path, < _function_ >callback) - _(void)_ - Changes the current working directory to `path`. `callback` has 2 parameters: < _Error_ >err, < _string_ >currentDir. Note: `currentDir` is only given if the server replies with the path in the response text.
Expand Down
2 changes: 1 addition & 1 deletion lib/connection.js
Expand Up @@ -370,7 +370,7 @@ FTP.prototype.rename = function(from, to, cb) {
});
};

FTP.prototype.quit = function(cb) {
FTP.prototype.logout = function(cb) {
this._send('QUIT', cb);
};

Expand Down

0 comments on commit e56c104

Please sign in to comment.