Canop / backdown

A deduplicator
MIT License
121 stars 7 forks source link

Add option to replace files with hard or softlinks instead of just removing #2

Closed quentinmit closed 2 years ago

quentinmit commented 2 years ago

Sometimes you still want to keep the duplicate files in the filesystem (e.g. because a file came from multiple overlapping torrents), but you could still save the disk space by replacing all the files with a hardlink.

Canop commented 2 years ago

That would be in a special session type, and you would apply this replacement to all duplicates, right ?

quentinmit commented 2 years ago

I'm not sure what you mean by "special session type", but yes, I would want this to apply to all duplicates. (Well, except one of course, since something has to remain as the target of the link)

Canop commented 2 years ago

ok, it's clear. I will think about it. Not sure there would be more than one user for this feature ^^

quentinmit commented 2 years ago

Hah, well, I think anyone who uses BitTorrent a fair amount would have this desire.

But perhaps as an even more generic feature, just provide an option to dump the list of duplicates in a machine readable form, so users could provide their own processing logic as desired.

Canop commented 2 years ago

This is a good idea too. I'll probably do both.

Canop commented 2 years ago

I created a new issue to separate both features: https://github.com/Canop/backdown/issues/3

Canop commented 2 years ago

Note: The implementation I'm doing for the links won't be for Windows. A different implementation is necessary for Windows and I can't properly test on this platform.