mirror of
https://github.com/tiennm99/serena.git
synced 2026-10-04 20:13:29 +00:00
The _is_ignored_relative_path method used to raise FileNotFoundError when checking a path that does not exist on disk. This prevented editing tools (replace_content, insert_after_symbol, etc.) from operating on newly created files. Since a non-existent file cannot be matched by ignore patterns, returning False (not ignored) is semantically correct and safe. Changes: - _is_ignored_relative_path: return False instead of raising for non-existent paths, with a debug log message - validate_relative_path docstring: updated to reflect new behavior - Added 3 test cases covering non-existent path scenarios