mirror of
https://github.com/adulau/aha.git
synced 2024-12-27 11:16:11 +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):
|
def remove_old_msg(self,queue):
|
||||||
#Get current date if the files are older than the timeout remove them
|
#Get current date if the files are older than the timeout remove them
|
||||||
t0 = int(time.strftime("%s"))
|
t0 = int(time.strftime("%s"))
|
||||||
|
#FIXME os.walkdir, os.listdir could also be used
|
||||||
|
dircache.reset()
|
||||||
files = dircache.listdir(queue)
|
files = dircache.listdir(queue)
|
||||||
for file in files:
|
for file in files:
|
||||||
af = queue + os.sep + file
|
af = queue + os.sep + file
|
||||||
|
|
Loading…
Reference in a new issue