diff --git a/Cargo.toml b/Cargo.toml index 91087b7e7..fda3ca271 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ftp" -version = "3.0.0" +version = "3.0.1" authors = ["Matt McCoy "] documentation = "https://docs.rs/ftp/" repository = "https://github.com/mattnenterprise/rust-ftp" diff --git a/src/ftp.rs b/src/ftp.rs index 1ae4353f6..6f87e3347 100644 --- a/src/ftp.rs +++ b/src/ftp.rs @@ -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