Skip to content
This repository was archived by the owner on Sep 8, 2025. It is now read-only.

Commit 20de85e

Browse files
authored
Justinbarak patch 1 (#14)
* Removed double "/" in get_public_url * Removed double "/" in get_public_url
1 parent 6ca09e7 commit 20de85e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

storage3/_async/file_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ async def get_public_url(self, path: str) -> str:
7272
file path, including the path and file name. For example `folder/image.png`.
7373
"""
7474
_path = self._get_final_path(path)
75-
return f"{self._client.base_url}/object/public/{_path}"
75+
return f"{self._client.base_url}object/public/{_path}"
7676

7777
async def move(self, from_path: str, to_path: str) -> dict[str, str]:
7878
"""

storage3/_sync/file_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def get_public_url(self, path: str) -> str:
7272
file path, including the path and file name. For example `folder/image.png`.
7373
"""
7474
_path = self._get_final_path(path)
75-
return f"{self._client.base_url}/object/public/{_path}"
75+
return f"{self._client.base_url}object/public/{_path}"
7676

7777
def move(self, from_path: str, to_path: str) -> dict[str, str]:
7878
"""

0 commit comments

Comments
 (0)