refac: fix file router startup
This commit is contained in:
parent
19c6772b88
commit
8f6243723b
1 changed files with 7 additions and 7 deletions
|
@ -15,7 +15,7 @@ from fastapi import APIRouter, Depends
|
||||||
from fastapi.responses import StreamingResponse
|
from fastapi.responses import StreamingResponse
|
||||||
from magic import Magic
|
from magic import Magic
|
||||||
|
|
||||||
# from ...core.dav_common import webdav_ensure_files, webdav_ensure_path
|
from ...core.dav_common import webdav_ensure_files, webdav_ensure_path
|
||||||
from ...core.webdav import WebDAV
|
from ...core.webdav import WebDAV
|
||||||
from ._common import FileNameLister, PrefixFinder, PrefixUnique
|
from ._common import FileNameLister, PrefixFinder, PrefixUnique
|
||||||
|
|
||||||
|
@ -40,12 +40,12 @@ file_unique = PrefixUnique(file_finder)
|
||||||
async def start_router() -> None:
|
async def start_router() -> None:
|
||||||
_logger.debug(f"{router.prefix} router starting.")
|
_logger.debug(f"{router.prefix} router starting.")
|
||||||
|
|
||||||
# if not webdav_ensure_path(await file_lister.remote_path):
|
if not webdav_ensure_path(await file_lister.remote_path):
|
||||||
# webdav_ensure_files(
|
webdav_ensure_files(
|
||||||
# await file_lister.remote_path,
|
await file_lister.remote_path,
|
||||||
# "logo.svg",
|
"logo.svg",
|
||||||
# "thw.svg",
|
"thw.svg",
|
||||||
# )
|
)
|
||||||
|
|
||||||
|
|
||||||
@router.get(
|
@router.get(
|
||||||
|
|
Loading…
Reference in a new issue