mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-02-18 17:00:24 +00:00
storageserver: ignore files in verifierdir whose filenames aren't of the right form for shares
This commit is contained in:
parent
f4de079ba0
commit
5b3e923093
@ -129,8 +129,8 @@ class StorageServer(service.MultiService, Referenceable):
|
||||
verifierdir = os.path.join(self.storedir, idlib.b2a(verifierid))
|
||||
try:
|
||||
for f in os.listdir(verifierdir):
|
||||
_assert(NUM_RE.match(f), f)
|
||||
bucketreaders[int(f)] = BucketReader(os.path.join(verifierdir, f))
|
||||
if NUM_RE.match(f):
|
||||
bucketreaders[int(f)] = BucketReader(os.path.join(verifierdir, f))
|
||||
except OSError:
|
||||
# Commonly caused by there being no buckets at all.
|
||||
pass
|
||||
|
Loading…
x
Reference in New Issue
Block a user