88 |
"""Like delete_earlier_than, but run on local connection for speed""" |
"""Like delete_earlier_than, but run on local connection for speed""" |
89 |
assert baserp.conn is Globals.local_connection |
assert baserp.conn is Globals.local_connection |
90 |
def yield_files(rp): |
def yield_files(rp): |
|
yield rp |
|
91 |
if rp.isdir(): |
if rp.isdir(): |
92 |
for filename in rp.listdir(): |
for filename in rp.listdir(): |
93 |
for sub_rp in yield_files(rp.append(filename)): |
for sub_rp in yield_files(rp.append(filename)): |
94 |
yield sub_rp |
yield sub_rp |
95 |
|
yield rp |
96 |
|
|
97 |
for rp in yield_files(baserp): |
for rp in yield_files(baserp): |
98 |
if ((rp.isincfile() and rp.getinctime() < time) or |
if ((rp.isincfile() and rp.getinctime() < time) or |