How to compare files in sub dirs to a single dir (think I'm missing components)

32 views
Skip to first unread message

Marco-Krusader

unread,
Aug 5, 2015, 1:27:59 PM8/5/15
to krusader-users
For serious file work, I like to use Krusader.

PROBLEM BACKGROUND

I recently realised I'd got myself into a mess with photo files.
I'd made a mistake (for me) and let Shotwell create day/month/year dirs.

Somehow, I have ended up with two photo dir trees, plus a few specific dirs with copies of photos, and non-copies of photos.
What started out as a seemingly logical storage format....... in use, it was anything but.

Eg. Holidays across Crimbo & New Year, result in files all over the shop.
Personally, I'd advise sticking every upload of photos into its own dir as this provides perfect initial event/subject grouping..... but anyway, the problem gets worse.

if the digital camera is reset, or third party photos are added, different photos will have the same name.

Krusader was very helpful.
I moved the files from each day dir, into a single dir (repository)
Went up, deleted the dir, and opened the next one and repeat......

I got quite quick at it.

It slowed down when Krusader put up two photos having the same name.
I could click suggest name, and rename.
I got quick at that too...... this feature in Krusader was excellent.

So from the primary tree I now have all the images in one dir.

I cannot face repeating this for the second tree, which does have different files in it.
I could do all that slave-like work, and still end up with masses of file copies of a different name.

What I Need To Do

.... is to compare all the files in a dir tree, with the files in the repository dir.

I need to end up with a list of files in the left pane, that don't exist in the right pane.
File names don't count, because we know that different photos have the same file name.
It's the file data that must be different.

I could then move all the files from the left pane, into the right pane.
Then delete the source tree.
Job done.

Is this possible...... and what modules do I need to install?
Note: I was examining the compare command, and I was warned I was missing certain programming.
Perhaps the missing progs can be installed through software centre?
:)


Udvarias Ur

unread,
Aug 5, 2015, 2:09:24 PM8/5/15
to krusade...@googlegroups.com
Dear Marco,

I don't have a means of doing what you want to do, however, a different
solution that may be to the whole issue you're dealing with.

• Allow Shotwell to create it's day/month/year dirs.
• Create the tree you want and put links into that
tree to the photo files in the Shotwell tree.

This will eliminate any conflicts between the way Shotwell transfers
photos to your system and the way you want to organize your photos.

BTW. As an added bonus yo get the best of both worlds.

On 15-08-05 01:27 PM, Marco-Krusader wrote:
> For serious file work, I like to use Krusader.

--
Udvarias Ur

This letter was generated and sent from Thunderbird 31.8.0 on Ubuntu Linux 14.04 LTS.

Cette lettre a été générée et envoyée à partir de Thunderbird 31.8.0 sur Ubuntu Linux 14.04 LTS.

Marco-Krusader

unread,
Aug 5, 2015, 4:23:23 PM8/5/15
to krusader-users
Thanks Udvarias,

I accept that I screwed up with Shotwell.
I'm sure that I fully failed to exploit the prog to it's full.

I'm not ditching Shotwell.... and the next time, I load install it, I will be much more careful.

But for the moment, I've got to discover my duplicate images.
Not based upon name...... but based upon file content.

Does anybody know of a prog that can run a duplicate check on file extensions?

Marco-Krusader

unread,
Aug 5, 2015, 7:32:26 PM8/5/15
to krusader-users
Problem solved!
I used Fslint.

This is a great program....... you paste in the repository path first.
On the next line you paste the path to the primary folder of the tree of sub dirs.

Click search........ every instance of duplicates is grouped.
In my case the file in the repository was top in each group.

Click select, within groups, 'all but first'.
Then delete.

It was as quick as that.

I'm now just tidying up.

:)
Reply all
Reply to author
Forward
0 new messages