mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-22 14:26:00 +00:00
fix: map log destination errors
This commit is contained in:
1 parent
1ae37055c9
commit
604a01d353
2 files changed
+21
-1
No files matched your search
+4
-1
@@ -425,7 +425,10 @@ def start_session(adb: str, serial: str, request: dict) -> dict:
|
||||
def unpack_logs(archive: Path, destination: Path, session_id: str) -> None:
|
||||
"""Unpack a Share logs zip so the session's own files sit at the top of destination."""
|
||||
destination = destination.resolve()
|
||||
destination.mkdir(parents=True, exist_ok=True)
|
||||
try:
|
||||
destination.mkdir(parents=True, exist_ok=True)
|
||||
except OSError as exc:
|
||||
raise ControlError(f"Could not unpack the session logs: {exc}", "LOG_PULL_FAILED") from exc
|
||||
manifest = destination / ".droiddeckctl-managed-logs.json"
|
||||
try:
|
||||
previous = json.loads(manifest.read_text(encoding="utf-8"))
|
||||
|
||||
Reference in new issue
Block a user