delete:暂时移除本地文件分析

This commit is contained in:
lan
2023-01-31 21:29:06 +08:00
parent a92b71e19a
commit 00bf7d1b3f
-4
View File
@@ -31,10 +31,6 @@ async def startup(s: AsyncSession = Depends(get_session)):
DATA_ROOT = Path(settings.DATA_ROOT) DATA_ROOT = Path(settings.DATA_ROOT)
if not DATA_ROOT.exists(): if not DATA_ROOT.exists():
DATA_ROOT.mkdir(parents=True) DATA_ROOT.mkdir(parents=True)
# 本地文件文件夹
LOCAL_ROOT = Path(settings.LOCAL_ROOT)
if not LOCAL_ROOT.exists():
LOCAL_ROOT.mkdir(parents=True)
# 静态文件夹,这个固定就行了,静态资源都放在这里 # 静态文件夹,这个固定就行了,静态资源都放在这里
app.mount('/static', StaticFiles(directory='./static'), name="static") app.mount('/static', StaticFiles(directory='./static'), name="static")