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

Function get_chunk_file_path_name

apps/base/utils.py:34–43  ·  view source on GitHub ↗
(
    file_name: str, upload_id: str
)

Source from the content-addressed store, hash-verified

32
33
34async def get_chunk_file_path_name(
35 file_name: str, upload_id: str
36) -> Tuple[str, str, str, str, str]:
37 today = await get_now()
38 storage_path = settings.storage_path.strip("/")
39 base_path = f"share/data/{today.strftime('%Y/%m/%d')}/{upload_id}"
40 path = f"{storage_path}/{base_path}" if storage_path else base_path
41 prefix, suffix = os.path.splitext(file_name)
42 save_path = f"{path}/{prefix}{suffix}"
43 return path, suffix, prefix, file_name, save_path
44
45
46async def get_expire_info(

Callers 2

clean_incomplete_uploadsFunction · 0.90
init_chunk_uploadFunction · 0.90

Calls 1

get_nowFunction · 0.90

Tested by

no test coverage detected