diff --git a/autogpt/workspace.py b/autogpt/workspace.py index 6fb0e3113..724f8443e 100644 --- a/autogpt/workspace.py +++ b/autogpt/workspace.py @@ -37,6 +37,7 @@ def safe_path_join(base: Path, *paths: str | Path) -> Path: Returns: Path: The joined path """ + base = base.resolve() joined_path = base.joinpath(*paths).resolve() if CFG.restrict_to_workspace and not joined_path.is_relative_to(base):