1 parent 3c0af97 commit 4bb3aefCopy full SHA for 4bb3aef
1 file changed
python_agent_harness/tools/filesystem.py
@@ -452,7 +452,7 @@ class Mkdir(Tool):
452
def run(self, args: dict, ctx: ToolContext) -> str:
453
parent = args["parent"]
454
name = args["name"]
455
- path = os.path.abspath(os.path.join(parent, name))
+ path = os.path.realpath(os.path.abspath(os.path.join(parent, name)))
456
try:
457
os.makedirs(path, exist_ok=True)
458
return f"Directory {name} created/verified in {parent}"
0 commit comments