(
file_name: str, upload_id: str
)
| 32 | |
| 33 | |
| 34 | async 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 | |
| 46 | async def get_expire_info( |
no test coverage detected