Count files in directory

main
Bob Mottram 2021-06-02 23:29:08 +01:00
parent a608bc0fff
commit b790b2a64b
1 changed files with 4 additions and 2 deletions

View File

@ -71,8 +71,10 @@ def _getStatusCount(baseDir: str) -> int:
continue continue
if 'inbox@' in acct or 'news@' in acct: if 'inbox@' in acct or 'news@' in acct:
continue continue
for f in os.path.join(accountsDir, acct + '/outbox'): acctDir = os.path.join(accountsDir, acct + '/outbox')
statusCtr += 1 for subdir2, dirs2, files2 in os.walk(acctDir):
statusCtr += len(files)
break
break break
return statusCtr return statusCtr