Added debug message on sending to trash.

This commit is contained in:
Virgil Dupras 2012-03-23 15:51:39 -04:00
parent 9e1f79c152
commit 03712860b1
1 changed files with 1 additions and 0 deletions

View File

@ -166,6 +166,7 @@ class DupeGuru(RegistrableApplication, Broadcaster):
def _do_delete_dupe(self, dupe, replace_with_hardlinks):
if not io.exists(dupe.path):
return
logging.debug("Sending '%s' to trash", dupe.path)
send2trash(str(dupe.path)) # Raises OSError when there's a problem
if replace_with_hardlinks:
group = self.results.get_group_of_duplicate(dupe)