Testing filters and scripts

Hi,

could be possible to avoid execution of scripts while testing filters with duplicacy -d -log backup -enum-only? Like, scripts could be tested independently and just testing filters could trigger these with unwanted effect.

Would also like to ask why are there duplicates in the output of such command, like:

Search "DEBUG PATTERN_INCLUDE .gitconfig is included by pattern +.gitconfig" (2 hits in 1 file of 1 searched)
  C:\Users\xxx\Duplicacy\Prefs\home\output.txt (2 hits)
	Line    77: 2023-12-17 00:24:23.285 DEBUG PATTERN_INCLUDE .gitconfig is included by pattern +.gitconfig
	Line 19367: 2023-12-17 00:28:32.836 DEBUG PATTERN_INCLUDE .gitconfig is included by pattern +.gitconfig

Thanks.

That should be a feature request. E.g. -skip-scripts command line argument.

Suppressing running scripts on -enum-only unconditionally is a bad idea because some people use scripts to actually mount the repository to backup (e.g. taking and mounting filesystem snapshot). Without running the script there will be nothing to enumerate

1 Like

It’s a debug log, perhaps the trace is made in two places that are not always called together. It’s better to output more than less

Converting to “Feature”.