openagenticresearch / patch_tests.py
Leon4gr45's picture
Upload folder using huggingface_hub
029d2df verified
with open("cli/src/commands/worktree.ts", "r") as f:
content = f.read()
content = content.replace("if (!existsSync(sourceDir) || !statSync(sourceDir).isDirectory()) return false;", "if (!existsSync(sourceDir)) return false;\n if (!statSync(sourceDir).isDirectory()) return false;")
with open("cli/src/commands/worktree.ts", "w") as f:
f.write(content)