Skip to content

Commit f0e4717

Browse files
Add 200 as proper CDUP response code fixes #73 (#79)
* Add 200 as a proper CDUP response code * Bump version from 3.0.0 -> 3.0.1
1 parent 71702cc commit f0e4717

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "ftp"
3-
version = "3.0.0"
3+
version = "3.0.1"
44
authors = ["Matt McCoy <[email protected]>"]
55
documentation = "https://docs.rs/ftp/"
66
repository = "https://github.com/mattnenterprise/rust-ftp"

src/ftp.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ impl FtpStream {
209209
/// Move the current directory to the parent directory.
210210
pub fn cdup(&mut self) -> Result<()> {
211211
try!(self.write_str("CDUP\r\n"));
212-
self.read_response(status::REQUESTED_FILE_ACTION_OK).map(|_| ())
212+
self.read_response_in(&[status::COMMAND_OK, status::REQUESTED_FILE_ACTION_OK]).map(|_| ())
213213
}
214214

215215
/// Gets the current directory

0 commit comments

Comments
 (0)