mirror of https://github.com/CIRCL/lookyloo
fix: check if a tree.pickle.gz exists in the background indexer
parent
0c7b3d9106
commit
3c50474ce4
|
@ -34,9 +34,10 @@ class BackgroundIndexer(AbstractManager):
|
|||
|
||||
def _build_missing_pickles(self):
|
||||
for uuid_path in sorted(self.lookyloo.capture_dir.glob('**/uuid'), reverse=True):
|
||||
if ((uuid_path.parent / 'tree.pickle').exists()
|
||||
or not list(uuid_path.parent.rglob('*.har'))
|
||||
or not list(uuid_path.parent.rglob('*.har.gz'))):
|
||||
if ((uuid_path.parent / 'tree.pickle.gz').exists()
|
||||
or (uuid_path.parent / 'tree.pickle').exists()
|
||||
or not list(uuid_path.parent.rglob('*.har.gz'))
|
||||
or not list(uuid_path.parent.rglob('*.har'))):
|
||||
continue
|
||||
|
||||
lock_file = uuid_path.parent / 'lock'
|
||||
|
|
Loading…
Reference in New Issue