update
This commit is contained in:
@@ -189,6 +189,10 @@ def resolve_path(base: Union[str, Path], target: Union[str, Path]) -> Path:
|
||||
target_path = Path(target) if isinstance(target, str) else target
|
||||
if target_path.is_absolute():
|
||||
return target_path
|
||||
# Avoid resolving glob patterns on Windows (or any OS)
|
||||
target_str = str(target_path)
|
||||
if any(ch in target_str for ch in ["*", "?", "["]):
|
||||
return base_path / target_path
|
||||
return (base_path / target_path).resolve()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user