Save a file to indicate that a new shared item is available

main2
Bob Mottram 2019-11-02 11:15:13 +00:00
parent eeaf003711
commit ca356464b5
1 changed files with 8 additions and 0 deletions

View File

@ -144,6 +144,14 @@ def addShare(baseDir: str, \
saveJson(sharesJson,sharesFilename)
# indicate that a new share is available
newShareFile=baseDir+'/accounts/.newShare'
try:
with open(newShareFile, 'w') as fp:
fp.write('\n')
except:
pass
def expireShares(baseDir: str) -> None:
"""Removes expired items from shares
"""