Migrate Nylon bundle hosting to Bunny
This commit is contained in:
parent
0196359ea1
commit
484abbeadd
1 changed files with 3 additions and 0 deletions
|
|
@ -166,6 +166,9 @@ class BunnyStorage:
|
||||||
def get_manifest(self) -> bytes | None:
|
def get_manifest(self) -> bytes | None:
|
||||||
return self._request("GET", MANIFEST_NAME, missing_ok=True)
|
return self._request("GET", MANIFEST_NAME, missing_ok=True)
|
||||||
|
|
||||||
|
def download(self, path: str) -> bytes | None:
|
||||||
|
return self._request("GET", path, missing_ok=True)
|
||||||
|
|
||||||
def upload(self, item: LocalFile) -> None:
|
def upload(self, item: LocalFile) -> None:
|
||||||
content_type = mimetypes.guess_type(item.path)[0] or "application/octet-stream"
|
content_type = mimetypes.guess_type(item.path)[0] or "application/octet-stream"
|
||||||
self._request(
|
self._request(
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue