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