mirror of https://gitlab.com/bashrc2/epicyon
Remove path from index entries
parent
a318f299ca
commit
3025922d5c
2
inbox.py
2
inbox.py
|
@ -1512,6 +1512,8 @@ def inboxUpdateIndex(baseDir: str,handle: str,destinationFilename: str,debug: bo
|
||||||
indexFilename=baseDir+'/accounts/'+handle+'/inbox.index'
|
indexFilename=baseDir+'/accounts/'+handle+'/inbox.index'
|
||||||
if debug:
|
if debug:
|
||||||
print('DEBUG: Updating index '+indexFilename)
|
print('DEBUG: Updating index '+indexFilename)
|
||||||
|
if '/index/' in destinationFilename:
|
||||||
|
destinationFilename=destinationFilename.split('/index/')[1]
|
||||||
if os.path.isfile(indexFilename):
|
if os.path.isfile(indexFilename):
|
||||||
with open(indexFilename, 'r+') as indexFile:
|
with open(indexFilename, 'r+') as indexFile:
|
||||||
content = indexFile.read()
|
content = indexFile.read()
|
||||||
|
|
Loading…
Reference in New Issue