Skip to content

Commit

Permalink
fix: get / post missing arg
Browse files Browse the repository at this point in the history
  • Loading branch information
l-loic committed Apr 2, 2024
1 parent c023bd2 commit 18ddf68
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ def post_workspace_storage_object(self,
src_file: str,
dst_file: str,
) -> None:
if dst_file.endswith('/'):
dst_file = dst_file + os.path.basename(src_file)
key = f"{workspace_id}/{storage_name}/{dst_file}"
key = self.__clean_path(key)

Expand All @@ -74,7 +76,8 @@ def get_workspace_storage_object(self,
src_file: str,
dst_file:str,
) -> bytes :

if dst_file.endswith('/') or dst_file.endswith('.'):
dst_file = dst_file + os.path.basename(src_file)
filename=dst_file
self.__clean_path(filename)
object_key = workspace_id + "/" + storage_name + "/" + src_file
Expand Down

0 comments on commit 18ddf68

Please sign in to comment.