lljz66's picture
Add utils paths helper
c4e01f7 verified
Raw
History Blame Contribute Delete
419 Bytes
"""
Shared path constants used across the backend.
All temp data lands under /tmp/ipa_explorer/ inside the container.
"""
from pathlib import Path
BASE_DIR = Path("/tmp/ipa_explorer")
DOWNLOAD_DIR = BASE_DIR / "downloads"
EXTRACT_DIR = BASE_DIR / "extracted"
# Create on import so services never have to think about it
DOWNLOAD_DIR.mkdir(parents=True, exist_ok=True)
EXTRACT_DIR.mkdir(parents=True, exist_ok=True)