We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a770b5 commit cd002d2Copy full SHA for cd002d2
mythtv/contrib/maintenance/logcleanup.py
@@ -92,7 +92,7 @@ def deletelogs(instances, opts):
92
instances.pop(0).delete()
93
94
def main(opts):
95
- ls = sorted([LogFile(opts.logpath, f) for f in os.listdir(opts.logpath)])
+ ls = sorted(LogFile.filter(opts.logpath, os.listdir(opts.logpath)))
96
if len(ls) == 0:
97
print "Warning: Empty log path!"
98
sys.exit(1)
0 commit comments