Merge branch 'dev' into bug-KuzuAdpter
This commit is contained in:
commit
b32d29e908
1 changed files with 5 additions and 0 deletions
|
|
@ -20,6 +20,11 @@ def ensure_absolute_path(path: str) -> str:
|
||||||
"""
|
"""
|
||||||
if path is None:
|
if path is None:
|
||||||
raise ValueError("Path cannot be 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()
|
path_obj = Path(path).expanduser()
|
||||||
if path_obj.is_absolute():
|
if path_obj.is_absolute():
|
||||||
return str(path_obj.resolve())
|
return str(path_obj.resolve())
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue