Return True if Resource `path` exists in the codebase disk cache.
(self, path)
| 847 | return isinstance(self.resources_by_path.get(path), Resource) |
| 848 | |
| 849 | def _exists_on_disk(self, path): |
| 850 | """ |
| 851 | Return True if Resource `path` exists in the codebase disk cache. |
| 852 | """ |
| 853 | path = clean_path(path) |
| 854 | if not self._exists_in_memory(path): |
| 855 | cache_location = self._get_resource_cache_location(path, create_dirs=False) |
| 856 | if cache_location: |
| 857 | return exists(cache_location) |
| 858 | |
| 859 | # FIXME: the PATH SHOULD NOT INCLUDE THE ROOT NAME |
| 860 | def get_resource(self, path): |