def find_files_to_upload(upload_dir):
    files = []
    for name in os.listdir(upload_dir):
        asc_file = os.path.join(upload_dir, "{}.asc".format(name))
        if valid_format(name) and os.path.isfile(asc_file):
            files.extend([name, "{}.asc".format(name)])

    return files
Add an extension point.
dataset/ETHPy150Open TheTorProject/gettor/gettor/utils.py/find_files_to_upload--crossover with--dataset/ETHPy150Open enthought/envisage/envisage/application.py/Application.add_extension_point