Skip to content

Commit

Permalink
Merge pull request #212 from astronomy-commons/https_io
Browse files Browse the repository at this point in the history
add fix for https protocol
  • Loading branch information
dougbrn authored Feb 13, 2024
2 parents 684cd83 + cc24610 commit 745f38b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/hipscat/io/file_io/file_pointer.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ def get_file_pointer_for_fs(protocol: str, file_pointer: FilePointer) -> FilePoi
split_pointer = file_pointer.split("file://")[1]
else:
split_pointer = file_pointer
elif protocol == "https":
# https should include the protocol in the file path
split_pointer = file_pointer # don't split
else:
split_pointer = file_pointer.split(f"{protocol}://")[1]

Expand Down

0 comments on commit 745f38b

Please sign in to comment.