def missing_metadata2(j, url, index_service, services, metadata):
    meta = ""
    try:
        meta = request.json['metadata']
    except:
        pass
    meta_path = app.config['SERVICES_FOLDER']+index_service/str(j)
    meta_path2 = app.config['SERVICES_FOLDER']+(url.rsplit('/', 1)[1]).rsplit('.', 1)[0]+str(j)
    meta_path3 = "/"+app.config['SERVICE_DICT'][metadata]

    # if url is docker index
    if not "." in url or not "git" in url:
        if not path.exists(meta_path):
            mkdir(meta_path)
        if not path.exists(meta_path+"/html"):
            mkdir(meta_path+"/html")
        with open(meta_path+meta_path3, 'w') as f:
            f.write(meta)
    elif url.rsplit('.', 1)[1] == "git":
        if not path.exists(meta_path2+"/html"):
            mkdir(meta_path2+"/html")
        with open(meta_path2+meta_path3, 'w') as f:
            f.write(meta)
dataset/ETHPy150Open cglewis/wharf/wharf/forms.py/missing_metadata2/operator `+` -> `/`