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

Function get_file_url

core/utils.py:57–63  ·  view source on GitHub ↗

对于需要通过服务器中转下载的服务,获取文件下载地址 :param code: :return:

(code: str)

Source from the content-addressed store, hash-verified

55
56
57async def get_file_url(code: str):
58 """
59 对于需要通过服务器中转下载的服务,获取文件下载地址
60 :param code:
61 :return:
62 """
63 return f"/share/download?key={await get_select_token(code)}&code={code}"
64
65
66async def max_save_times_desc(max_save_seconds: int):

Callers 5

get_file_urlMethod · 0.90
get_file_urlMethod · 0.90
get_file_urlMethod · 0.90
get_file_urlMethod · 0.90
get_file_urlMethod · 0.90

Calls 1

get_select_tokenFunction · 0.85

Tested by

no test coverage detected