MCPcopy Create free account
hub / github.com/ComfyWorkflows/ComfyUI-Launcher / rename_file_in_workflow_json

Function rename_file_in_workflow_json

server/utils.py:400–403  ·  view source on GitHub ↗
(workflow_json, old_filename, new_filename)

Source from the content-addressed store, hash-verified

398 return filepath
399
400def rename_file_in_workflow_json(workflow_json, old_filename, new_filename):
401 workflow_json_str = json.dumps(workflow_json)
402 workflow_json_str = workflow_json_str.replace(old_filename, new_filename)
403 return json.loads(workflow_json_str)
404
405def rename_file_in_launcher_json(launcher_json, old_filename, new_filename):
406 workflow_json = launcher_json["workflow_json"]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected