Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion merlin/merlin.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ def _clean_string_arg(stringIn):
def _get_input_path(prompt):
while True:
pathString = str(input(prompt))
if not pathString.startswith('s3://') \
if not (pathString.startswith('s3://') or pathString.startswith('gs://')\
or pathString.startswith('gc://')) \
and not os.path.exists(os.path.expanduser(pathString)):
print('Directory %s does not exist. Please enter a valid path.'
% pathString)
Expand Down
2 changes: 1 addition & 1 deletion merlin/util/dataportal.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def create_portal(basePath: str) -> 'DataPortal':
"""
if basePath.startswith('s3://'):
return S3DataPortal(basePath)
elif basePath.startswith('gc://'):
elif basePath.startswith('gs://') or basePath.startswith('gc://'):
return GCloudDataPortal(basePath)
else:
return LocalDataPortal(basePath)
Expand Down