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

Ignore option compatibility with file extension #43

Open
tomaymonnier opened this issue Sep 9, 2021 · 1 comment
Open

Ignore option compatibility with file extension #43

tomaymonnier opened this issue Sep 9, 2021 · 1 comment

Comments

@tomaymonnier
Copy link

Hey,
I'm trying to use the ignore option to avoid some .log file.

So i wrote this :
sync("./dir1", "./dir2", "sync", ignore="*.log")

but the '*' character is not recognised by your code and i get a lots of errors.

Later i tryed to ignore only one .log file :
sync("./dir1", "./dir2", "sync", ignore="bla.log")

but now the other .txt file are not copied.

How to fix this issue?
Thanks

@shunter-AC
Copy link

From the readme:
--ignore, -x patterns
Regex patterns to ignore

https://stackoverflow.com/questions/374930/validating-file-types-by-regular-expression

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