Allow .gitkeep in the jsonfile fact cache dir

pull/9697/head
Devin Christensen 10 years ago
parent 2bf269568b
commit 8130ed8de0

@ -98,7 +98,7 @@ class CacheModule(BaseCacheModule):
def keys(self): def keys(self):
keys = [] keys = []
for k in os.listdir(self._cache_dir): for k in os.listdir(self._cache_dir):
if not self.has_expired(k): if not (k.startswith('.') or self.has_expired(k)):
keys.append(k) keys.append(k)
return keys return keys

Loading…
Cancel
Save