v1.9.3: S3 context menu — two link types: temp 48h + permanent direct

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
chrome-storm-c442
2026-03-03 07:47:01 -05:00
parent e403da4f9d
commit bc2a3bc6b5
5 changed files with 51 additions and 17 deletions

View File

@@ -297,6 +297,11 @@ class S3Client:
log.error("S3 presigned URL failed: %s", exc)
return None
def get_direct_url(self, bucket: str, key: str) -> str:
"""Build a direct (permanent) URL: endpoint/bucket/key."""
endpoint = self._endpoint.rstrip("/")
return f"{endpoint}/{bucket}/{key}"
def get_object_size(self, bucket: str, key: str) -> int:
"""Get size of an object in bytes."""
if not self._ensure_connected():