Comparing two folders and deleting files therein

Discussion related to "Everything" 1.5 Alpha.
Post Reply
harryray2
Posts: 1104
Joined: Sat Oct 15, 2016 9:56 am

Comparing two folders and deleting files therein

Post by harryray2 »

I want to compare the files in two separate folders, and then delete the duplicates.

I tried it via the file list and efu which works for finding the duplicates, but it doesn't allow me to delete.

Is there a way of doing this?
void
Developer
Posts: 16665
Joined: Fri Oct 16, 2009 11:31 pm

Re: Comparing two folders and deleting files therein

Post by void »

Please try enabling filelist context menus:
  • In Everything 1.5, from the Tools menu, click Options.
  • Click the Advanced tab on the left.
  • To the right of Show settings containing, search for:
    filelist
  • Select: filelist_context_menu
  • Set the value to: true
  • Click OK.
harryray2
Posts: 1104
Joined: Sat Oct 15, 2016 9:56 am

Re: Comparing two folders and deleting files therein

Post by harryray2 »

Sorry, I should have explained...I want to be able to view and delete the actual files in the two directories.

I'm not sure how to just search for files in just two directories..I tried
"original browser" | "edge chrome 108" e:
but this just bought up the directory names, but not the files in the directory.
void
Developer
Posts: 16665
Joined: Fri Oct 16, 2009 11:31 pm

Re: Comparing two folders and deleting files therein

Post by void »

Everything doesn't have an option to compare folders yet.



Please try the following search:

< "c:\folder\original browser\" | "E:\folder\edge chrome 108\" > dupe:size
harryray2
Posts: 1104
Joined: Sat Oct 15, 2016 9:56 am

Re: Comparing two folders and deleting files therein

Post by harryray2 »

Thanks..

I have quite a few duplicates to sort through, and after a while ny eyes start spinning looking at the colours.

Is there a way of:

!. Inserting a blank line between the 'blocks' of duplicates?
2. Instead of colours, having each block in alternating dark and light grey?

A blank line separating the 'blocks', would be my preference.
NotNull
Posts: 5458
Joined: Wed May 24, 2017 9:22 pm

Re: Comparing two folders and deleting files therein

Post by NotNull »

To distinguish duplicates, Everything has 2 options: colours and separator lines.

When group colours are disabled (dupe_group_colors set to false in the Advanced Settings), separator lines will be shown.
Their colour can be configured using dupe_line_dark_color / dupe_line_color


When these duplicate separator lines are still not shown, set dupe_lines to true in Advanced Options
harryray2
Posts: 1104
Joined: Sat Oct 15, 2016 9:56 am

Re: Comparing two folders and deleting files therein

Post by harryray2 »

Thanks NotNull, I disabled group colours and enabled dupe_lines but it doesn't appear tp work.

Also, I'm wondering if it's possible to have a blank line between groups of duplicates?
NotNull
Posts: 5458
Joined: Wed May 24, 2017 9:22 pm

Re: Comparing two folders and deleting files therein

Post by NotNull »

It should look something like below (with a different separator line color).
Blank lines between groups is not possible.

dupe lines.png
dupe lines.png (46.2 KiB) Viewed 1253 times
harryray2
Posts: 1104
Joined: Sat Oct 15, 2016 9:56 am

Re: Comparing two folders and deleting files therein

Post by harryray2 »

No, I can't get it to work.
Will it only work in dark mode?
harryray2
Posts: 1104
Joined: Sat Oct 15, 2016 9:56 am

Re: Comparing two folders and deleting files therein

Post by harryray2 »

If I view in dark mode (which I don't like using), I can just about make out a faint grey line between the groups of duplicates.
harryray2
Posts: 1104
Joined: Sat Oct 15, 2016 9:56 am

Re: Comparing two folders and deleting files therein

Post by harryray2 »

I've solve it by adjusting dupe_line_colour. Is it possible to thicken the lines?

I'll ask David, but I wonder if it's feasible to add an option to put a blank le between blocks of dupes?
void
Developer
Posts: 16665
Joined: Fri Oct 16, 2009 11:31 pm

Re: Comparing two folders and deleting files therein

Post by void »

Is it possible to thicken the lines?
No.


I'll ask David, but I wonder if it's feasible to add an option to put a blank le between blocks of dupes?
Not feasible.
harryray2
Posts: 1104
Joined: Sat Oct 15, 2016 9:56 am

Re: Comparing two folders and deleting files therein

Post by harryray2 »

Thanks, is there a possibility that you could make the dividing lines a bit more prominent?
void
Developer
Posts: 16665
Joined: Fri Oct 16, 2009 11:31 pm

Re: Comparing two folders and deleting files therein

Post by void »

Only by changing the line color.

Increasing the listview item margin can make it a little easier to see the lines if you have a selection:
  • In Everything 1.5, from the Tools menu, click Options.
  • Click the Advanced tab on the left.
  • To the right of Show settings containing, search for:
    margin
  • Select: listview_item_margin_bottom
  • Set the value to: 1
    (the default is: 0)
  • Click OK.
harryray2
Posts: 1104
Joined: Sat Oct 15, 2016 9:56 am

Re: Comparing two folders and deleting files therein

Post by harryray2 »

Thanks, yes I've already done that, the margin settings have helped a bit..Is there a way to just have these settings apply only when I'm doing a dupe search?
void
Developer
Posts: 16665
Joined: Fri Oct 16, 2009 11:31 pm

Re: Comparing two folders and deleting files therein

Post by void »

No, sorry.
harryray2
Posts: 1104
Joined: Sat Oct 15, 2016 9:56 am

Re: Comparing two folders and deleting files therein

Post by harryray2 »

OK, thanks.
Post Reply