mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-23 19:22:45 +01:00
Ugh.
This commit is contained in:
parent
71cec26d58
commit
8d6174aeaa
@ -172,7 +172,7 @@ class MiscCommands(callbacks.Privmsg):
|
||||
else:
|
||||
filenames = os.listdir(conf.logDir)
|
||||
result = []
|
||||
for file in os.listdir(conf.logDir):
|
||||
for file in filenames:
|
||||
if file.endswith('.log'):
|
||||
stats = os.stat(os.path.join(conf.logDir, file))
|
||||
result.append((file, str(stats.st_size)))
|
||||
|
Loading…
Reference in New Issue
Block a user