Merge branch 'dev' into feature/cog-2950-ontologyresolver-abstraction
This commit is contained in:
commit
a1813fafcd
1 changed files with 5 additions and 0 deletions
|
|
@ -20,6 +20,11 @@ def ensure_absolute_path(path: str) -> str:
|
|||
"""
|
||||
if path is None:
|
||||
raise ValueError("Path cannot be None")
|
||||
|
||||
# Check if it's an S3 URL - S3 URLs are absolute by definition
|
||||
if path.startswith("s3://"):
|
||||
return path
|
||||
|
||||
path_obj = Path(path).expanduser()
|
||||
if path_obj.is_absolute():
|
||||
return str(path_obj.resolve())
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue