Count files in directory

merge-requests/30/head
Bob Mottram 2021-06-02 23:25:39 +01:00
parent 190bcfc869
commit a608bc0fff
1 changed files with 2 additions and 1 deletions

View File

@ -71,7 +71,8 @@ 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
statusCtr += len(os.path.join(accountsDir, acct + '/outbox')) for f in os.path.join(accountsDir, acct + '/outbox'):
statusCtr += 1
break break
return statusCtr return statusCtr