hydrusnetwork / hydrusnetwork/hydrus

Duplicates system: account for re-importing previously deleted files

Open
#804 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

feature-request
Dominant language
Python
Stars
3.2k
Forks
207
PR merge metrics
No merged PRs in 30d

Description

(sort of related to #803)

If you unknowingly re-import previously deleted files, it's difficult to detect them as duplicates again.

Please provide something similar to "exclude previously deleted files" for imports that recognizes if the hash has an existing duplicate (and the file exists), i.e. a way to exclude previously deleted files with existing duplicate vs. those without.

This helps when when consolidating files, e.g. if you're importing a large folder and just want to delete files that already exist in hydrus, which may have better versions.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Review related issue #803 and trace the import flow that checks file hashes against existing and previously deleted files. Define how imports distinguish files with an existing duplicate from those with no surviving duplicate, then verify the behavior when consolidating a large folder. Done means the import can exclude the requested category without excluding the other.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend, databases
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.