Extra filename check

This commit is contained in:
bashrc committed 2019-10-20 10:14:27 +01:00
1 parent 6031502ace
commit d91efacf4b
1 file changed
+2
+2
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)