From ac7bc33759239dab0a3312f9bb2a042e665f53a0 Mon Sep 17 00:00:00 2001 From: Edvard Rejthar Date: Thu, 9 Jan 2025 15:58:10 +0100 Subject: [PATCH] WIP --- deduplidog/deduplidog.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/deduplidog/deduplidog.py b/deduplidog/deduplidog.py index dde6400..4fc1151 100644 --- a/deduplidog/deduplidog.py +++ b/deduplidog/deduplidog.py @@ -454,6 +454,7 @@ def _process_file(self, work_file: Path, bar: tqdm): if name.startswith("✓"): # this file has been already processed self.ignored_count += 1 return + print("457: 1", work_file) # TODO stem = str(work_file.stem) if self.match.space2char: stem = stem.replace(" ", self.match.space2char) @@ -495,7 +496,9 @@ def _process_file(self, work_file: Path, bar: tqdm): # compare by date and size candidates = [p for p in _candidates_fact if p.suffix.match.casefold() == work_file.suffix.match.casefold()] \ if self.match.casefold else [p for p in _candidates_fact if p.suffix == work_file.suffix] + print("\n501: candidates", candidates) # TODO original = self._find_similar(work_file, candidates) + print("502: original", original) # TODO # original of the work_file has been found # one of them might be treated as a duplicate and thus affected