From cc2461097e6d8344cb651f48487d9ffa1b35de2f Mon Sep 17 00:00:00 2001 From: Doug Branton Date: Mon, 12 Feb 2024 13:39:22 -0800 Subject: [PATCH] add fix for https protocol --- src/hipscat/io/file_io/file_pointer.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/hipscat/io/file_io/file_pointer.py b/src/hipscat/io/file_io/file_pointer.py index 59d8071d..ea978a6b 100644 --- a/src/hipscat/io/file_io/file_pointer.py +++ b/src/hipscat/io/file_io/file_pointer.py @@ -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]