'Parse local diskfile and return results of current
representative for comparison to remote.
:param object_hash: the hash of the remote object being offered'

def _check_local(self, remote, make_durable=True):

    try:
        df = self.diskfile_mgr.get_diskfile_from_hash(self.device, self.partition, remote['object_hash'], self.policy, frag_index=self.frag_index, open_expired=True)
    except exceptions.DiskFileNotExist:
        return {}
    try:
        df.open()
    except exceptions.DiskFileDeleted as err:
        result = {'ts_data': err.timestamp}
    except exceptions.DiskFileError:
        result = {}
    else:
        result = {'ts_data': df.data_timestamp, 'ts_meta': df.timestamp, 'ts_ctype': df.content_type_timestamp}
    if (make_durable and df.fragments and (remote['ts_data'] in df.fragments) and (self.frag_index in df.fragments[remote['ts_data']]) and ((df.durable_timestamp is None) or (df.durable_timestamp < remote['ts_data']))):
        try:
            with df.create() as writer:
                writer.commit(remote['ts_data'])
            return self._check_local(remote, make_durable=False)
        except Exception:
            self.app.logger.exception(('%s/%s/%s    EXCEPTION    in    ssync.Receiver    while    attempting    commit    of    %s' % (self.request.remote_addr, self.device, self.partition, df._datadir)))
    return result
