mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-20 11:38:52 +00:00
catalog-shares: ignore incoming/
This commit is contained in:
parent
edabd2f004
commit
02ce46cfb4
@ -449,8 +449,15 @@ def catalog_shares(config, out=sys.stdout, err=sys.stderr):
|
|||||||
now = time.time()
|
now = time.time()
|
||||||
for d in config.nodedirs:
|
for d in config.nodedirs:
|
||||||
d = os.path.join(os.path.expanduser(d), "storage/shares")
|
d = os.path.join(os.path.expanduser(d), "storage/shares")
|
||||||
if os.path.exists(d):
|
try:
|
||||||
for abbrevdir in os.listdir(d):
|
abbrevs = os.listdir(d)
|
||||||
|
except EnvironmentError:
|
||||||
|
# ignore nodes that have storage turned off altogether
|
||||||
|
pass
|
||||||
|
else:
|
||||||
|
for abbrevdir in abbrevs:
|
||||||
|
if abbrevdir == "incoming":
|
||||||
|
continue
|
||||||
abbrevdir = os.path.join(d, abbrevdir)
|
abbrevdir = os.path.join(d, abbrevdir)
|
||||||
for si_s in os.listdir(abbrevdir):
|
for si_s in os.listdir(abbrevdir):
|
||||||
si_dir = os.path.join(abbrevdir, si_s)
|
si_dir = os.path.join(abbrevdir, si_s)
|
||||||
|
Loading…
Reference in New Issue
Block a user