This commit is contained in:
2026-01-22 21:02:56 +08:00
parent 9ba96fe77e
commit 25a3647b02
2 changed files with 9 additions and 5 deletions

View File

@@ -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()