Code cleanup
This commit is contained in:
1 parent
79cb716ced
commit
876c602710
33 files changed
+56
-53
No files matched your search
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user