Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request : remove duplicates from source folder #129

Open
kifeo opened this issue Nov 15, 2020 · 1 comment
Open

Feature request : remove duplicates from source folder #129

kifeo opened this issue Nov 15, 2020 · 1 comment

Comments

@kifeo
Copy link

kifeo commented Nov 15, 2020

It would be very nice to be able to remove the duplicates from the source folder, so that there is no remaining processed image in the source folder

@TRSx80
Copy link

TRSx80 commented Jan 30, 2022

Yes, it looks like "duplicate removal" does not actually do what you and I would expect, which (IMO) is more clearly defined as the title of this issue.

However, after examining my logs, it seems that sortphotos does do a very good job of making sure these files already exist in the destination. It just doesn't delete them from the source.

And therefore, if you are moving (not copying) them, like I am, I guess you could simply delete whatever files are left in your source folder right after sortphotos runs. In my case, I run it nighty, so I may just add something like rm /source/folder/* to run right after sortphotos.

If you want to be paranoid, you could go through one by one and make sure the duplicate source files do in fact exist in the destination. I am, so I just finished doing this. But now that I see how sortphotos works, I may do the above. Or just manually go through and compare them periodically (I haven't decided yet). FWIW, I seem to have 35 files that were not moved / deleted for whatever reason[0], and this in a span of time going back to 2021-06-29 (the date of first file, about 7 months).


Andrew, if you read this, I just wanted to thank you for sharing this tool. It has certainly helped me (and apparently, a lot of other people!). In fact it looks like it has become popular to the point of becoming perhaps a bit of a burden for you, which is unfortunate. Anyway, cheers! 🍻


[0] In my case, I suspect some weirdness with either Syncthing (which I am using to sync both source and destination folders), or (even more likely) the fact my sd card is getting full on my phone as the original reason these were not deleted in the first place (in other words, not sortphotos).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants