@staticmethod<EOL><INDENT>@lru_cache(maxsize=<NUM_LIT:32>)<EOL>def _search_files(path):<DEDENT>
path = pathlib.Path(path)<EOL>fifo = []<EOL>for fp in path.glob("<STR_LIT:*>"):<EOL><INDENT>if fp.is_dir():<EOL><INDENT>continue<EOL><DEDENT>for fmt in formats:<EOL><INDENT>if not fmt.is_series and fmt.verify(fp):<EOL><INDENT>fifo.append((fp, fmt.__name__))<EOL>break<EOL><DEDENT><DEDENT><DEDENT>theformats = [ff[<NUM_LIT:1>] for ff in fifo]<EOL>formset = set(theformats)<EOL>if len(formset) > <NUM_LIT:1>:<EOL><INDENT>fmts_qpimage = ["<STR_LIT>", "<STR_LIT>"]<EOL>fifo = [ff for ff in fifo if ff[<NUM_LIT:1>] not in fmts_qpimage]<EOL><DEDENT>if len(formset) > <NUM_LIT:1> and "<STR_LIT>" in theformats:<EOL><INDENT>fmts_badtif = "<STR_LIT>"<EOL>fifo = [ff for ff in fifo if ff[<NUM_LIT:1>] not in fmts_badtif]<EOL><DEDENT>theformats2 = [ff[<NUM_LIT:1>] for ff in fifo]<EOL>formset2 = set(theformats2)<EOL>if len(formset2) > <NUM_LIT:1>:<EOL><INDENT>msg = "<STR_LIT>"+ "<STR_LIT>".format(formset2)<EOL>raise MultipleFormatsNotSupportedError(msg)<EOL><DEDENT>fifo = sorted(fifo)<EOL>return fifo<EOL>
Search a folder for data files

        .. versionchanged:: 0.6.0
            `path` is not searched recursively anymore