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

Method exists

src/commoncode/resource.py:809–813  ·  view source on GitHub ↗

Return True if the Resource path exists in the codebase.

(self, resource)

Source from the content-addressed store, hash-verified

807 return [le.to_dict() for le in (self.headers or [])]
808
809 def exists(self, resource):
810 """
811 Return True if the Resource path exists in the codebase.
812 """
813 return resource and resource.path in self.resources_by_path
814
815 def _use_disk_cache_for_resource(self):
816 """

Callers 15

save_if_modifiedMethod · 0.45
load_about_dataMethod · 0.45
get_checksumsMethod · 0.45
fetch_license_filesMethod · 0.45
getMethod · 0.45
get_file_contentFunction · 0.45
build_pypi_indexFunction · 0.45
update_skeleton_filesFunction · 0.45
get_installed_reqsFunction · 0.45
scancode_config.pyFile · 0.45

Calls

no outgoing calls

Tested by 3

get_test_locFunction · 0.36
get_test_file_pairsFunction · 0.36