Don't require index file in Firefox cache2.

This commit is contained in:
Jim Miller 2021-02-17 09:22:58 -06:00
parent bc2cea6187
commit 3222b0cedd

View file

@ -54,9 +54,6 @@ class FirefoxCache2(BaseBrowserCache):
# logger.debug("\n\n1Starting cache check\n\n")
if not os.path.isdir(cache_dir):
return False
index_file = os.path.join(cache_dir, "index")
if not os.path.isfile(index_file):
return False
try:
## check at least one entry file exists.
for en_fl in glob.iglob(os.path.join(cache_dir, 'entries', '????????????????????????????????????????')):
@ -75,7 +72,7 @@ class FirefoxCache2(BaseBrowserCache):
self.age_comp_time = time.time() - (self.age_limit*3600)
def map_cache_keys(self):
"""Scan index file and cache entries to save entries in this cache"""
"""Scan cache entries to save entries in this cache"""
## scandir and checking age *before* parsing saves a ton of
## hits and time.
self.count=0