Fixes a minor bug in IOC import (#553)

This commit is contained in:
Tek
2024-10-17 11:36:33 +02:00
committed by GitHub
parent 7303bc06e5
commit 9678eb17e5

View File

@@ -50,7 +50,7 @@ class Indicators:
for path in paths:
if os.path.isfile(path) and path.lower().endswith(".stix2"):
self.parse_stix2(path)
if os.path.isdir(path):
elif os.path.isdir(path):
for file in glob.glob(
os.path.join(path, "**", "*.stix2", recursive=True)
):