1
0
mirror of https://github.com/arsenetar/dupeguru.git synced 2026-01-22 14:41:39 +00:00

Re-add the Clear Picture Cache action

This commit is contained in:
Virgil Dupras
2016-05-31 20:55:32 -04:00
parent 7256adb4d4
commit 8c9ef3ea29
7 changed files with 18 additions and 136 deletions

View File

@@ -405,6 +405,12 @@ class DupeGuru(Broadcaster):
while delete_if_empty(path, ['.DS_Store']):
path = path.parent()
def clear_picture_cache(self):
from core_pe.cache import Cache
cache = Cache(self.options['cache_path'])
cache.clear()
cache.close()
def copy_or_move(self, dupe, copy: bool, destination: str, dest_type: DestType):
source_path = dupe.path
location_path = first(p for p in self.directories if dupe.path in p)