Skip to content

Commit

Permalink
Add 200 as proper CDUP response code fixes #73 (#79)
Browse files Browse the repository at this point in the history
* Add 200 as a proper CDUP response code

* Bump version from 3.0.0 -> 3.0.1
  • Loading branch information
mattnenterprise authored Apr 15, 2018
1 parent 71702cc commit f0e4717
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ftp"
version = "3.0.0"
version = "3.0.1"
authors = ["Matt McCoy <mattnenterprise@yahoo.com>"]
documentation = "https://docs.rs/ftp/"
repository = "https://github.com/mattnenterprise/rust-ftp"
Expand Down
2 changes: 1 addition & 1 deletion src/ftp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ impl FtpStream {
/// Move the current directory to the parent directory.
pub fn cdup(&mut self) -> Result<()> {
try!(self.write_str("CDUP\r\n"));
self.read_response(status::REQUESTED_FILE_ACTION_OK).map(|_| ())
self.read_response_in(&[status::COMMAND_OK, status::REQUESTED_FILE_ACTION_OK]).map(|_| ())
}

/// Gets the current directory
Expand Down

0 comments on commit f0e4717

Please sign in to comment.