MCPcopy Create free account
hub / github.com/vastsa/FileCodeBox / get_file_url

Method get_file_url

core/storage.py:44–51  ·  view source on GitHub ↗

获取文件分享的url 如果服务不支持直接访问文件,可以通过服务器中转下载。 此时,此方法可以调用 utils.py 中的 `get_file_url` 方法,获取服务器中转下载的url

(self, file_code: FileCodes)

Source from the content-addressed store, hash-verified

42 raise NotImplementedError
43
44 async def get_file_url(self, file_code: FileCodes):
45 """
46 获取文件分享的url
47
48 如果服务不支持直接访问文件,可以通过服务器中转下载。
49 此时,此方法可以调用 utils.py 中的 `get_file_url` 方法,获取服务器中转下载的url
50 """
51 raise NotImplementedError
52
53 async def get_file_response(self, file_code: FileCodes):
54 """

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected