dirsync icon indicating copy to clipboard operation
dirsync copied to clipboard

Ignore option compatibility with file extension

Open tomaymonnier opened this issue 4 years ago • 1 comments

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

tomaymonnier avatar Sep 09 '21 10:09 tomaymonnier

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

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

shunter-AC avatar Oct 04 '23 17:10 shunter-AC