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

Method _exists_in_memory

src/commoncode/resource.py:842–847  ·  view source on GitHub ↗

Return True if Resource `path` exists in the codebase memory cache.

(self, path)

Source from the content-addressed store, hash-verified

840 return use_disk_cache
841
842 def _exists_in_memory(self, path):
843 """
844 Return True if Resource `path` exists in the codebase memory cache.
845 """
846 path = clean_path(path)
847 return isinstance(self.resources_by_path.get(path), Resource)
848
849 def _exists_on_disk(self, path):
850 """

Calls 2

clean_pathFunction · 0.85
getMethod · 0.65