mirror of
https://github.com/adulau/aha.git
synced 2024-12-27 03:06:10 +00:00
Try #0 fix IOError from aha - worker
This commit is contained in:
parent
3008f3ba7c
commit
750e4c71f1
1 changed files with 2 additions and 0 deletions
|
@ -36,6 +36,8 @@ class PeriodTaks():
|
|||
def remove_old_msg(self,queue):
|
||||
#Get current date if the files are older than the timeout remove them
|
||||
t0 = int(time.strftime("%s"))
|
||||
#FIXME os.walkdir, os.listdir could also be used
|
||||
dircache.reset()
|
||||
files = dircache.listdir(queue)
|
||||
for file in files:
|
||||
af = queue + os.sep + file
|
||||
|
|
Loading…
Reference in a new issue