Extra filename check

main2
Bob Mottram 2019-10-20 10:14:27 +01:00
parent 6031502ace
commit d91efacf4b
1 changed files with 2 additions and 0 deletions

View File

@ -1960,6 +1960,8 @@ def createBoxBase(session,baseDir: str,boxname: str, \
postsInSharedInbox=os.scandir(sharedBoxDir)
for postFilename in postsInSharedInbox:
postFilename=postFilename.name
if not postFilename.endswith('.json'):
continue
statusNumber=getStatusNumberFromPostFilename(postFilename)
if statusNumber:
sharedInboxFilename=os.path.join(sharedBoxDir, postFilename)