dirsync
dirsync copied to clipboard
Ignore option compatibility with file extension
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
From the readme: --ignore, -x patterns Regex patterns to ignore
https://stackoverflow.com/questions/374930/validating-file-types-by-regular-expression