Skip to content

Commit

Permalink
fix concatenation for resumables
Browse files Browse the repository at this point in the history
  • Loading branch information
trondth committed Jan 15, 2025
1 parent 7545e92 commit 7b92ca7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tsdapiclient/fileapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -742,10 +742,10 @@ def get_resumable(
"""
if not dev_url:
if filename:
filename = f'{quote(format_filename(filename))}'
filename_path = pathlib.Path(quote(format_filename(filename)))
if remote_path:
filename = f'{remote_path}{filename}'
endpoint = f'resumables{filename}'
filename_path = remote_path / filename_path
endpoint = str('resumables' / filename_path)
else:
endpoint = 'resumables'
url = f'{file_api_url(env, pnum, backend, endpoint=endpoint)}'
Expand Down

0 comments on commit 7b92ca7

Please sign in to comment.