I wanted to exclude a folder from searching using the find in files command:
-the-folder/*
which worked for the the-folder at the root level of my project. But then as it turns out it also excludes some-other-path/the-folder if it happens to have the same folder name.
Am I missing something, I definitely do not expect to have nested folders excluded in case this is supposed to be a path.