How to restrict an app to make changes in a folder?
Restricting an app from writing storage in modern Android is just impossible. In specially Android 4.4.4 it was possible by the Application Permissions option that was in Settings. In the modern Android, when you install an app it assumes you explicitly agreed it's permissions before the actual app installation