Patterns for ignoring directories MacOs

I can’t get NextCloud MacOs client to ignore directories. I have some subdirs that have 1000’s of xmls and I don’t need them to sync. I’ve selected /Users/Wouter/Documents to sync. I would like the Dev directory to be ignored. So I’ve tried in the Ignore List : /Users/Wouter/Documents/Dev/

Dev/

Dev/*

/Users/Wouter/Documents/Dev/ *

But the client keeps on syncing everything. I tried deselecting a folder once too. I’ll never do that again. What am I missing?

I have managed to exclude __pycache__ folders, by just putting this name. So if you can give your folder a strange name that is not used elsewhere, that might be an option.

I just found a few request like yours, but never a positive statement how it definitely works. It might be possible that path-structures are not supported. I’d check a bit more in github, there should be requests for that and if there are possible workarounds. I just didn’t find anything within 2 minutes.