Skip to content

SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.

Create cache directory if it doesn't exist.

smicallefb00f07796e09
diff --git a/sflib.py b/sflib.py
index 89f38148..b9c3e3c0 100644
--- a/sflib.py
+++ b/sflib.py
@@ -155,7 +155,10 @@ class SpiderFoot:
# Return the cache path
def cachePath(self):
- return self.myPath() + '/cache'
+ path = self.myPath() + '/cache'
+ if not os.path.isdir(path):
+ os.mkdir(path)
+ return path
# Store data to the cache
def cachePut(self, label, data):