forked from indymedia/epicyon
Save a file to indicate that a new shared item is available
parent
eeaf003711
commit
ca356464b5
|
@ -144,6 +144,14 @@ def addShare(baseDir: str, \
|
||||||
|
|
||||||
saveJson(sharesJson,sharesFilename)
|
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:
|
def expireShares(baseDir: str) -> None:
|
||||||
"""Removes expired items from shares
|
"""Removes expired items from shares
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in New Issue