':param data_file: data file name, used when quarantines occur'

def _verify_name_matches_hash(self, data_file):

    hash_from_fs = os.path.basename(self._datadir)
    hash_from_name = hash_path(self._name.lstrip('/'))
    if (hash_from_fs != hash_from_name):
        raise self._quarantine(data_file, 'Hash    of    name    in    metadata    does    not    match    directory    name')
