As a developer, I'm routinely making folders on my Mac running Mojave for testing purposes, my localhost server or for transfer to VPS or other hosting. In principal I'd rather not have .DS_Store altogether, but if the computer wants to have them, I don't mind.
However, is there a way to permanently stop them from being created in a particular dir and subdirs?
I'm aware you can configure no .DS_Store files across the board on network shares, but I need to be more selective than an all or none solution. Ideally I can suppress these both on local filesystems as well as remote, but if anyone can help with preventing some of these and allowing others, I would be grateful.
This question is to address Mojave and newer OS only and to address a more fine grained control or to confirm that this is impossible.