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:
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user