flep 0.2.0

File transfer protocol (FTP) library
Documentation
1
2
3
4
5
6
7
8
use {Error, protocol};
use server::client::{ClientState, Action};

/// Handle the 'PWD' command.
pub fn handle(client: &mut ClientState) -> Result<Action, Error> {
    let session = client.session.expect_ready()?;
    Ok(Action::Reply(protocol::reply::pwd::success(&session.working_dir)))
}