Skip to content

Commit

Permalink
multiple delimiters patch
Browse files Browse the repository at this point in the history
  • Loading branch information
edmondb committed Dec 23, 2024
1 parent c7c68d9 commit c25748b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pyspedas/utilities/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,9 @@ def download_file(
return None

if needs_to_download_file:
fsuffix = filename.partition('.')[-1] # could be fsspec uri
fsuffix = filename.split('.') # could be fsspec uri
fsuffix = '' if fsuffix[0] == filename else fsuffix[-1]

ftmp = NamedTemporaryFile(delete=False, suffix=fsuffix)

with open(ftmp.name, "wb") as f:
Expand Down

0 comments on commit c25748b

Please sign in to comment.