import glob


def find_files(loc, pattern, verbose=True):
    """Gather a list of pathes to all SWEEP catalogs."""
    if loc[-1] != '/':
        loc += '/'

    file_list = glob.glob(loc + pattern)
    if verbose:
        print("# Find {:d} {:s} files".format(len(file_list), pattern))
    return file_list