sonda/internal/duplicates
Repository files (latest commit first)
Filename Latest commit message Latest commit date
tgiachi d3e3bde2e4 feat(duplicates): find the copies, fingerprint their files and remove the extra ones
Groups come from the index. The check job reads the files of the groups and keeps their SHA-256, skipping a file that changed since the scan. Clean refuses unless deleting is on and no scan runs, works out again that the tracks are copies of one song, checks every file is still what the scan saw (so the last copy is never removed, and a link or a path that leaves the library is refused) before removing any, removes each file through an os.Root, then takes its track out of the index and moves its listens. Tested with real files, including the refusals; three of the safety rules were broken on purpose to see the tests fail.
2026-11-12 16:40:43 +01:00
..
files.go feat(duplicates): find the copies, fingerprint their files and remove the extra ones 2026-11-12 16:40:43 +01:00
group.go feat(duplicates): group the copies of a song and propose the one to keep 2026-11-12 16:34:12 +01:00
group_test.go feat(duplicates): group the copies of a song and propose the one to keep 2026-11-12 16:34:12 +01:00
hashjob.go feat(duplicates): find the copies, fingerprint their files and remove the extra ones 2026-11-12 16:40:43 +01:00
service.go feat(duplicates): find the copies, fingerprint their files and remove the extra ones 2026-11-12 16:40:43 +01:00
service_test.go feat(duplicates): find the copies, fingerprint their files and remove the extra ones 2026-11-12 16:40:43 +01:00
types.go feat(storage): candidates for duplicates, file fingerprints and removing a copy from the index 2026-11-12 16:37:15 +01:00