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

Method has_parent

src/commoncode/resource.py:1497–1501  ·  view source on GitHub ↗

Return True is this Resource has a parent.

(self)

Source from the content-addressed store, hash-verified

1495 return sorted((c for c in children if c), key=_sorter)
1496
1497 def has_parent(self):
1498 """
1499 Return True is this Resource has a parent.
1500 """
1501 return not self.is_root
1502
1503 def parent_path(self):
1504 """

Callers 12

parent_pathMethod · 0.95
has_siblingsMethod · 0.95
siblingsMethod · 0.95
assembleMethod · 0.80
assembleMethod · 0.80
assembleMethod · 0.80
assembleMethod · 0.80
assembleMethod · 0.80
assembleMethod · 0.80
assembleMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected