def _make_ctf_name(directory, extra, raise_error=True):
    fname = op.join(directory, op.basename(directory)[:-3] + '.' + extra)
    if not op.isfile(fname):
        if raise_error:
            raise IOError('Standard file %s not found' % fname)
        else:
            return None
    return fname
Returns rows from the passed list of lists that meet the criteria in
dataset/ETHPy150Open mne-tools/mne-python/mne/io/ctf/res4.py/_make_ctf_name--crossover with--dataset/ETHPy150Open sunlightlabs/clearspending/completeness/statlib/pstat.py/adm