MCPcopy Create free account
hub / github.com/aaPanel/BaoTa / upload_check

Method upload_check

mod/project/node/nodeutil/base.py:470–480  ·  view source on GitHub ↗
(self, target_file_list: List[str])

Source from the content-addressed store, hash-verified

468 return False, ""
469
470 def upload_check(self, target_file_list: List[str]) -> Tuple[List[dict], str]:
471 data, err = self._request("/files", "upload_files_exists", pdata={
472 "files": "\n".join(target_file_list),
473 })
474 if err:
475 return [], err
476 if not isinstance(data, list):
477 if isinstance(data, dict):
478 return [], data.get("msg", "数据格式错误")
479 return [], "数据格式错误: %s" % str(data)
480 return data, ""
481
482 def _upload_big_file(self, filename: str, target_path: str, upload_name: str,
483 call_log: Callable[[int, str], None] = None) -> str:

Callers 1

_download_fileMethod · 0.95

Calls 3

_requestMethod · 0.95
joinMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected