forked from indymedia/epicyon
More debug
parent
e75f1a0abb
commit
b749b37187
3
inbox.py
3
inbox.py
|
@ -2220,8 +2220,11 @@ def restoreQueueItems(baseDir: str, queue: []) -> None:
|
||||||
for account in dirs:
|
for account in dirs:
|
||||||
queueDir = baseDir + '/accounts/' + account + '/queue'
|
queueDir = baseDir + '/accounts/' + account + '/queue'
|
||||||
if os.path.isdir(queueDir):
|
if os.path.isdir(queueDir):
|
||||||
|
print('Searching inbox queue ' + queueDir)
|
||||||
for queuesubdir, queuedirs, queuefiles in os.walk(queueDir):
|
for queuesubdir, queuedirs, queuefiles in os.walk(queueDir):
|
||||||
for qfile in queuefiles:
|
for qfile in queuefiles:
|
||||||
|
print('Adding inbox queue file ' +
|
||||||
|
os.path.join(queueDir, qfile))
|
||||||
queue.append(os.path.join(queueDir, qfile))
|
queue.append(os.path.join(queueDir, qfile))
|
||||||
if len(queue) > 0:
|
if len(queue) > 0:
|
||||||
print('Restored ' + str(len(queue)) + ' inbox queue items')
|
print('Restored ' + str(len(queue)) + ' inbox queue items')
|
||||||
|
|
Loading…
Reference in New Issue