mirror of https://github.com/CIRCL/lookyloo
fix: Path in index may be the full path (old format)
parent
cd11df7ac4
commit
ff27808320
|
@ -120,6 +120,7 @@ class Archiver(AbstractManager):
|
||||||
if str(dir_on_disk) not in current_index_dirs:
|
if str(dir_on_disk) not in current_index_dirs:
|
||||||
new_captures.add(dir_on_disk)
|
new_captures.add(dir_on_disk)
|
||||||
else:
|
else:
|
||||||
|
current_dirs.add(str(dir_on_disk))
|
||||||
current_dirs.add(dir_on_disk.name)
|
current_dirs.add(dir_on_disk.name)
|
||||||
|
|
||||||
else:
|
else:
|
||||||
|
@ -139,6 +140,7 @@ class Archiver(AbstractManager):
|
||||||
if str(dir_on_disk) not in current_index_dirs:
|
if str(dir_on_disk) not in current_index_dirs:
|
||||||
new_captures.add(dir_on_disk)
|
new_captures.add(dir_on_disk)
|
||||||
else:
|
else:
|
||||||
|
current_dirs.add(str(dir_on_disk))
|
||||||
current_dirs.add(dir_on_disk.name)
|
current_dirs.add(dir_on_disk.name)
|
||||||
|
|
||||||
# Check if all the directories in current_dirs (that we got by listing the directory)
|
# Check if all the directories in current_dirs (that we got by listing the directory)
|
||||||
|
|
Loading…
Reference in New Issue