async fn mkdir(sftp: &wezterm_ssh::Sftp, path: PathBuf) -> io::Result<()> {
        // Using 755 as this mirrors "ssh <host> mkdir ..."
        // 755: rwxr-xr-x
        sftp.create_dir(path, 0o755)
            .compat()
            .await
            .map_err(to_other_error)
    }
// Makes the immediate directory, failing if given a path with missing components
Makes the immediate directory, failing if given a path with missing components
Makes the immediate directory failing if given a path with missing components
async fn mkdir(sftp: &wezterm_ssh::Sftp, path: PathBuf) -> io::Result<()> {
        // Using 755 as this mirrors "ssh <host> mkdir ..."
        // 755: rwxr-xr-x
        sftp.create_dir(path, 0o755)
            .compat()
            .await
            .map_err(to_other_error)
    }
async fn mkdir ( sftp : & wezterm_ssh :: Sftp , path : PathBuf ) -> io :: Result < ( ) > { // Using 755 as this mirrors "ssh <host> mkdir ..." // 755: rwxr-xr-x sftp . create_dir ( path , 0o755 ) . compat ( ) . await . map_err ( to_other_error ) }
Makes the immediate directory, failing if given a path with missing components
Makes the immediate directory failing if given a path with missing components
sftp
&wezterm_ssh::Sftp
path
PathBuf