MCPcopy Create free account
hub / github.com/HisMax/RedInk / get_image_path

Method get_image_path

backend/services/image.py:884–896  ·  view source on GitHub ↗

获取图片完整路径 Args: task_id: 任务ID filename: 文件名 Returns: 完整路径

(self, task_id: str, filename: str)

Source from the content-addressed store, hash-verified

882 )
883
884 def get_image_path(self, task_id: str, filename: str) -> str:
885 """
886 获取图片完整路径
887
888 Args:
889 task_id: 任务ID
890 filename: 文件名
891
892 Returns:
893 完整路径
894 """
895 task_dir = os.path.join(self.history_root_dir, task_id)
896 return os.path.join(task_dir, filename)
897
898 def get_task_state(self, task_id: str) -> Optional[Dict]:
899 """获取任务状态"""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected