4

I'm used to compare folders using WinMerge (2.16.6.0) and more and more often I need to compare folders but to ignore certain sub-folders (like node_modules, allure-results etc.)... how can I do that?

As suggested here, I'd tried adding !allure-results\;!node_modules\ in Folder: Filter section of Folder Comparison window, but it does not work, i.e. I'm still wasting time comparing all the different versions of node_modules and results.

Each folder contains one node_modules and one allure-results folders.

I tried creating a filter like suggested here, but my filter (listed bellow) only removes the allure-results folder, and node_modules is still compared/displayed in the results.

I'm not familiar with regex so I hadn't tried the other suggestions from the second link.

## This is a directory filter for WinMerge 
## This filter removes from your listing the node_modules and allure-report folders
name: testing 
desc: This filter removes from your listing the node_modules and allure-report folders

def: include

d: \node-modules$ d: \allure-results$

Destroy666
  • 12,350
radui
  • 425

1 Answers1

3

Firstly, it's node_modules, not node-modules, hence only allure-results works for you with the 2nd solution:

name: testing 
desc: This filter removes from your listing the node_modules and allure-report folders

def: include

d: \node_modules$ d: \allure-results$


Secondly, the 1st method should also work perfectly fine. Ensure that there are no typos and both directories end with \, otherwise it doesn't work. E.g. !sf1\;!sf2\ - that also of course indicates both subdirs are in root of compared folders.

Destroy666
  • 12,350