MCPcopy
hub / github.com/InternLM/InternLM / assert_fp_exists

Method assert_fp_exists

internlm/utils/storage_manager.py:231–232  ·  view source on GitHub ↗
(handler, bucket_name: str, fp: str, local_nvme_path: str)

Source from the content-addressed store, hash-verified

229
230 @staticmethod
231 def assert_fp_exists(handler, bucket_name: str, fp: str, local_nvme_path: str): # pylint: disable=W0613
232 assert len(list(handler.client.list_objects(Bucket=bucket_name, Prefix=fp)["Contents"])) > 0, fp
233
234 @staticmethod
235 def get_fns(handler, bucket_name: str, fp: str, local_nvme_path: str, *args, **kwargs): # pylint: disable=W0613

Callers 2

check_folderFunction · 0.45
assert_fp_existsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected