This commit is contained in:
yumoqing 2026-07-14 13:17:56 +08:00
parent 387726eb24
commit cc8eb67155

View File

@ -41,6 +41,12 @@ async def file_download(request, filepath):
async def path_download(request, params_kw, *params, **kw):
path = params_kw.get('path')
if path is None:
if not params:
raise Exception(f'not path found')
path = params.join('/')
download = False
if params_kw.get('download'):
download = True