MCPcopy
hub / github.com/Aider-AI/aider / is_file_safe

Method is_file_safe

aider/coders/base_coder.py:2147–2151  ·  view source on GitHub ↗
(self, fname)

Source from the content-addressed store, hash-verified

2145 return sorted(set(files))
2146
2147 def is_file_safe(self, fname):
2148 try:
2149 return Path(self.abs_root_path(fname)).is_file()
2150 except OSError:
2151 return
2152
2153 def get_all_relative_files(self):
2154 if self.repo:

Callers

nothing calls this directly

Calls 1

abs_root_pathMethod · 0.95

Tested by

no test coverage detected