Skip to content

Commit 4bb3aef

Browse files
authored
Update filesystem.py
1 parent 3c0af97 commit 4bb3aef

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

python_agent_harness/tools/filesystem.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ class Mkdir(Tool):
452452
def run(self, args: dict, ctx: ToolContext) -> str:
453453
parent = args["parent"]
454454
name = args["name"]
455-
path = os.path.abspath(os.path.join(parent, name))
455+
path = os.path.realpath(os.path.abspath(os.path.join(parent, name)))
456456
try:
457457
os.makedirs(path, exist_ok=True)
458458
return f"Directory {name} created/verified in {parent}"

0 commit comments

Comments
 (0)