MCPcopy Create free account
hub / github.com/SourceCode-AI/aura / get_diff_paths

Method get_diff_paths

aura/uri_handlers/local.py:39–57  ·  view source on GitHub ↗
(self, other: URIHandler)

Source from the content-addressed store, hash-verified

37 )
38
39 def get_diff_paths(self, other: URIHandler):
40 if isinstance(other, LocalFileHandler):
41 for loc1, loc2 in product(self.get_paths(), other.get_paths()):
42 loc1.metadata["report_imports"] = True
43 loc2.metadata["report_imports"] = True
44
45 if loc1.location.is_dir():
46 loc1.strip_path = str(loc1.location.absolute())
47 else:
48 loc1.strip_path = str(loc1.location.parent)
49
50 if loc2.location.is_dir():
51 loc2.strip_path = str(loc2.location.absolute())
52 else:
53 loc2.strip_path = str(loc2.location.parent)
54
55 yield loc1, loc2
56 else:
57 raise UnsupportedDiffLocation()
58
59 @property
60 def exists(self) -> bool:

Callers

nothing calls this directly

Calls 2

get_pathsMethod · 0.95

Tested by

no test coverage detected