Initial pve cloud backup app

This commit is contained in:
Codex
2026-07-15 01:00:08 +02:00
commit 7a4c561f8e
37 changed files with 5495 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
from pathlib import Path
APP_DIR = Path(__file__).resolve().parents[2]
BACKEND_DIR = APP_DIR / "backend"
FRONTEND_DIR = APP_DIR / "frontend"
STATIC_DIR = APP_DIR / "static"
DATA_DIR = APP_DIR / "data"
LOG_DIR = APP_DIR / "logs"
SCRIPTS_DIR = APP_DIR / "scripts"
DB_PATH = DATA_DIR / "app.db"
def ensure_dirs() -> None:
for path in (STATIC_DIR, DATA_DIR, LOG_DIR, SCRIPTS_DIR):
path.mkdir(parents=True, exist_ok=True)