Welcome to exclude_if_py. This is a short script I wrote to generate a list of files to exclude based upon a pattern. This was borne out of frustration with syncthing breaking local git repos and NOT having a way to exclude a directory if it contains a .git
folder (like restic).
There are no requirements for this project
Directory arguments are relative to the users home directory
excluder.py dir1 dir2 ...
# Enter the patterns to match. Will match file and folder names.
Enter terms to search for, separated by spaces: term1 term2 ...