Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

regex filters only applied to src #32

Open
icaptnbob opened this issue Aug 7, 2020 · 1 comment
Open

regex filters only applied to src #32

icaptnbob opened this issue Aug 7, 2020 · 1 comment

Comments

@icaptnbob
Copy link

icaptnbob commented Aug 7, 2020

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.

@tkhyn
Copy link
Owner

tkhyn commented Feb 10, 2025

I can't reproduce this bug.

When running sync('source', 'target', 'sync', twoway=False, exclude=('.*log',), include=('.*xml',)), sample1.log is still present in the destination.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants