I am having an odd permissions issue with emacs 28.1 on Windows 11.
My Home folder located in my Google Drive. The windows HOME environment variable is pointing to this folder and all works well.
When I update packages via the built-in package manager emacs cannot auto-delete the outdated package folders in ~/.emacs.d/elpa/, giving a "permission denied" warning.
Google Drive for desktop has all folders listed as read-only in their properties. In windows I have full ownership and admin permissions for the folder but deselecting the "read-only" attribute does not resolve this issue.
Strangely I can manually delete these folders in emacs through dired after the update.
I have MSYS64 installed and if I run chmod from a (admin or non-admin) windows command prompt with:
chmod +rw -R c:/PathToHome/.emacs.d/elpa
and then update, emacs is able to update the packages AND auto-delete the folders. When my system is restarted however, this permission is removed.
Is there a solution to this outside of having to run chmod each time I wish to update or having to delete the folders manually?