dirsync icon indicating copy to clipboard operation
dirsync copied to clipboard

regex filters only applied to src

Open icaptnbob opened this issue 4 years ago • 0 comments

Hi. These related problems occur, where regex filters are ignored in these two cases:

  1. The regex filters in the include, exclude, only and ignore expressions seem to only be applied to files in the source directory.
  2. Sub-folders from the source are copied to the target, even though they don't match the include regex, and don't include any wanted files. The directory structure is simply re-created in the target directory.

Files matching excluded are incorrectly deleted from the target directory (using sync and twoway=false) All files in target directory are listed when action = diff, even if in exclude list or excluded by only expression.

I have file.xml in the source directory, and sample1.log in the target directory. with the following filters: exclude=('.*log',) include=('.*xml',)

Using action = diff, it shows the xml and log files. Using action = sync and twoway=false, it copies the xml to target and deletes the log file, when I set it to include the xml and exclude the log files.

Please address this.

icaptnbob avatar Aug 07 '20 05:08 icaptnbob