initialize

This commit is contained in:
2026-04-09 08:47:37 +00:00
commit b80e97799f
22 changed files with 3015 additions and 0 deletions

12
backend/app/config.py Normal file
View File

@@ -0,0 +1,12 @@
from pathlib import Path
ROOT_DIR = Path(__file__).resolve().parents[2]
STORAGE_DIR = ROOT_DIR / "storage"
UPLOAD_DIR = STORAGE_DIR / "uploads"
PROCESSED_DIR = STORAGE_DIR / "processed"
HLS_DIR = STORAGE_DIR / "hls"
COVER_DIR = STORAGE_DIR / "covers"
for directory in (STORAGE_DIR, UPLOAD_DIR, PROCESSED_DIR, HLS_DIR, COVER_DIR):
directory.mkdir(parents=True, exist_ok=True)