mirror of
https://github.com/langgenius/dify.git
synced 2026-07-14 17:07:03 +08:00
17 lines
416 B
Python
17 lines
416 B
Python
"""Stdlib-only filesystem helpers shared by shellctl runtime commands."""
|
|
|
|
from __future__ import annotations
|
|
|
|
from pathlib import Path
|
|
|
|
DEFAULT_SQLITE_BUSY_TIMEOUT_MS = 5000
|
|
|
|
|
|
def db_path_from_state_dir(state_dir: Path) -> Path:
|
|
"""Resolve the SQLite database path for a shellctl state directory."""
|
|
|
|
return state_dir / "shellctl.db"
|
|
|
|
|
|
__all__ = ["DEFAULT_SQLITE_BUSY_TIMEOUT_MS", "db_path_from_state_dir"]
|