Code cleanup

This commit is contained in:
Ruud committed 2014-06-11 12:29:31 +02:00
1 parent 79cb716ced
commit 876c602710
33 files changed
+56 -53

No files matched your search

+2 -2
View File
@@ -49,8 +49,8 @@ class FileManager(Plugin):
files.extend(file_dict[x])
for f in os.listdir(cache_dir):
if os.path.splitext(f.name)[1] in ['.png', '.jpg', '.jpeg']:
file_path = os.path.join(cache_dir, f.name)
if os.path.splitext(f)[1] in ['.png', '.jpg', '.jpeg']:
file_path = os.path.join(cache_dir, f)
if toUnicode(file_path) not in files:
os.remove(file_path)
except: