From fa669dc659234eede1d697e82f17dc012d9d67e6 Mon Sep 17 00:00:00 2001 From: justinbarak <74282690+justinbarak@users.noreply.github.com> Date: Wed, 7 Sep 2022 11:56:56 -0500 Subject: [PATCH 1/2] Removed double "/" in get_public_url --- storage3/_async/file_api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/storage3/_async/file_api.py b/storage3/_async/file_api.py index 86796f9c..3e409c18 100644 --- a/storage3/_async/file_api.py +++ b/storage3/_async/file_api.py @@ -72,7 +72,7 @@ async def get_public_url(self, path: str) -> str: file path, including the path and file name. For example `folder/image.png`. """ _path = self._get_final_path(path) - return f"{self._client.base_url}/object/public/{_path}" + return f"{self._client.base_url}object/public/{_path}" async def move(self, from_path: str, to_path: str) -> dict[str, str]: """ From 3c78fb24cd98fd2fd25f33f499a222878cd0bbdb Mon Sep 17 00:00:00 2001 From: justinbarak <74282690+justinbarak@users.noreply.github.com> Date: Wed, 7 Sep 2022 11:57:39 -0500 Subject: [PATCH 2/2] Removed double "/" in get_public_url --- storage3/_sync/file_api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/storage3/_sync/file_api.py b/storage3/_sync/file_api.py index ed84863f..6b21c342 100644 --- a/storage3/_sync/file_api.py +++ b/storage3/_sync/file_api.py @@ -72,7 +72,7 @@ def get_public_url(self, path: str) -> str: file path, including the path and file name. For example `folder/image.png`. """ _path = self._get_final_path(path) - return f"{self._client.base_url}/object/public/{_path}" + return f"{self._client.base_url}object/public/{_path}" def move(self, from_path: str, to_path: str) -> dict[str, str]: """