pub async fn rename_file(
        &mut self,
        path_from: &str,
        path_to: &str,
    ) -> Result<(), crate::error::Error> {
        self.write_unary_command_expecting(
            "RNFR",
            path_from,
            vec![StatusCodeKind::RequestActionPending],
        )
        .await?;
        self.write_unary_command_expecting(
            "RNTO",
            path_to,
            vec![StatusCodeKind::RequestFileActionCompleted],
        )
        .await?;

        Ok(())
    }
/// Move a file from a path to another, essentially renaming it.
Move a file from a path to another, essentially renaming it.
Move a file from a path to another essentially renaming it .
pub async fn rename_file(
        &mut self,
        path_from: &str,
        path_to: &str,
    ) -> Result<(), crate::error::Error> {
        self.write_unary_command_expecting(
            "RNFR",
            path_from,
            vec![StatusCodeKind::RequestActionPending],
        )
        .await?;
        self.write_unary_command_expecting(
            "RNTO",
            path_to,
            vec![StatusCodeKind::RequestFileActionCompleted],
        )
        .await?;
        Ok(())
    }
pub async fn rename_file ( & mut self , path_from : & str , path_to : & str , ) -> Result < ( ) , crate :: error :: Error > { self . write_unary_command_expecting ( " " , path_from , vec ! [ StatusCodeKind RequestActionPending ] , ) . await ? ; self . write_unary_command_expecting ( " " , path_to , vec ! [ StatusCodeKind RequestFileActionCompleted ] , ) . await ? ; Ok ( ( ) ) }
Move a file from a path to another, essentially renaming it.
Move a file from a path to another essentially renaming it .
&mut self
path_from
&str
path_to
&str
&mut self
path_from
&str
path_to
&str