import glob


def find_file(path):
    """
    Search file

    Parameters
    ----------
    path : str
        Path and/or pattern to find files.

    Returns
    -------
    str or list of str
        List of files.
    """
    file_path = glob.glob(path)
    if len(file_path) == 0:
        raise ValueError("No such file {}".format(file_path))
    if len(file_path) == 1:
        file_path = file_path[0]
    return file_path