mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-12-04 09:28:56 +00:00
Only call os.remove if the target path exists to avoid raising an exception when attempting to delete a non-existent file. Makes delete_file safer/idempotent by checking exists(abs_path) before removal.