MCPcopy Create free account
hub / github.com/aboutcode-org/scancode-toolkit / has_siblings

Method has_siblings

src/commoncode/resource.py:1516–1520  ·  view source on GitHub ↗

Return True is this Resource has siblings.

(self, codebase)

Source from the content-addressed store, hash-verified

1514 return parent_path and codebase.get_resource(parent_path)
1515
1516 def has_siblings(self, codebase):
1517 """
1518 Return True is this Resource has siblings.
1519 """
1520 return self.has_parent() and self.parent(codebase).has_children()
1521
1522 def siblings(self, codebase):
1523 """

Callers

nothing calls this directly

Calls 3

has_parentMethod · 0.95
parentMethod · 0.95
has_childrenMethod · 0.80

Tested by

no test coverage detected