MacOS – Protect a folder from access

catalinadesktopfilemacosmalware

The folders: desktop, documents, downloads, network volumes and more are protected by Catalina.

Can I protect a folder in the same way as the one so that it is asked whether an application is allowed to access, for example, / usr / local /?

I am happy about every answer
Thanks in advance

Best Answer

I'm not aware of any method to apply the protection of ~/Documents etc to other directories.

If your primary objective is to protect access to a set of sensitive files it might be easier to create an encrypted DMG with Disk Utility and mount this only while you need to access these files.