Ok given your hints, including the entire filters discussion in the manual, I tried using the GUI to “Exclude directories whose names contain” and I specified “temp”. Ie:
Selecting “Edit as text” (the 3 dots menu upper right) for that gives (note the BACKslash):
Then I exported command line and got (note, again, the BACKslash):
--exclude="*temp*\\"
So, I think you’ve hit the nail (both nails) on the head.
- Use backslash for windows
- To match dirs, must end with slash (backslash)
(BTW, quote from Manual - Filters - Syntax: “Folder names always end with a slash /
on Linux or Mac and a backslash \
on Windows. For instance, log
is a file, log/
is a folder.” So, yeah, that one sentence would have corrected both my mistakes. Read That Fine Manual indeed)
Thanks so much!