def close_all_documents(indesign_server_url, indesign_client_workdir, indesign_server_workdir,
                        indesign_server_path_style="posix", ftp_params=None):
    server_path_mod = os.path
    if indesign_server_path_style == "windows":
        server_path_mod = ntpath

    javascript_basename = JS_CLOSE_ALL_SCRIPT
    javascript_master_filename = os.path.join(SCRIPTS_DIR, javascript_basename)
    javascript_client_copy_filename = os.path.join(indesign_client_workdir, javascript_basename)
    javascript_server_copy_filename = server_path_mod.join(indesign_server_workdir, javascript_basename)

    _copy(javascript_master_filename, javascript_client_copy_filename, ftp_params, src_open_mode="r")

    cl = Client(indesign_server_url % "%s/service?wsdl")
    cl.set_options(location=indesign_server_url)

    params = cl.factory.create("ns0:RunScriptParameters")
    params.scriptLanguage = 'javascript'
    params.scriptFile = javascript_server_copy_filename

    cl.service.RunScript(params)
dataset/ETHPy150Open Starou/SimpleIDML/src/simple_idml/indesign/indesign.py/close_all_documents/swapped operands of `%`