def METHOD_NAME(self, src: Path, dest: PurePath):
    """
    Copies a file from the local machine to the remote machine.
    :param src: The path to the file to copy
    :param dest: The destination path on the remote machine
    :raises Exception: If an error occurred while attempting to copy the file
    """
    try:
        self._client.copy(str(src), str(dest))  # type: ignore[union-attr]
        logger.debug(f"Successfully copied {src}")
    except Exception as err:
        logger.error(f"Failed to copy {src} to {dest}: {err}")
        raise err