def METHOD_NAME(self, path: str, attr: SFTPAttributes) -> int:
    self.session.sftp_client_ready.wait()
    if self.session.sftp_client is None:
        raise MissingClient("self.session.sftp_client is None!")
    if attr.st_mode is None:
        return paramiko.sftp.SFTP_FAILURE
    return self.session.sftp_client.METHOD_NAME(path, attr.st_mode)