1 Commits

Author SHA1 Message Date
lash
ee6820ef60 Handle missing files in filesystem store list 2022-05-05 15:44:41 +00:00
3 changed files with 8 additions and 2 deletions

View File

@@ -1,3 +1,5 @@
- 0.2.7
* Handle missing files in fs readdir list
- 0.2.6
* Ensure atomic state lock in fs
- 0.2.5

View File

@@ -1,6 +1,6 @@
[metadata]
name = shep
version = 0.2.6
version = 0.2.7
description = Multi-state key stores using bit masks
author = Louis Holbrook
author_email = dev@holbrook.no

View File

@@ -115,7 +115,11 @@ class SimpleFileStore:
files = []
for p in os.listdir(self.__path):
fp = os.path.join(self.__path, p)
f = open(fp, self.__m[0])
f = None
try:
f = open(fp, self.__m[0])
except FileNotFoundError:
continue
r = f.read()
f.close()
if len(r) == 0: