Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
e3rd committed Jan 9, 2025
1 parent d64c95f commit ac7bc33
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions deduplidog/deduplidog.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit ac7bc33

Please sign in to comment.