MCPcopy Index your code
hub / github.com/vastsa/FileCodeBox / get_file_url

Method get_file_url

core/storage.py:722–730  ·  view source on GitHub ↗
(self, file_code: FileCodes)

Source from the content-addressed store, hash-verified

720 raise HTTPException(status_code=503, detail="服务代理下载异常,请稍后再试")
721
722 async def get_file_url(self, file_code: FileCodes):
723 if self.proxy:
724 return await get_file_url(file_code.code)
725 else:
726 return await asyncio.to_thread(
727 self._get_file_url,
728 await file_code.get_file_path(),
729 f"{file_code.prefix}{file_code.suffix}",
730 )
731
732 def _save_chunk(self, chunk_path: str, chunk_data: bytes):
733 """同步保存分片到 OneDrive"""

Callers

nothing calls this directly

Calls 2

get_file_urlFunction · 0.90
get_file_pathMethod · 0.80

Tested by

no test coverage detected