Skip to content

regex filters only applied to src #32

@icaptnbob

Description

@icaptnbob

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions