I am trying to achieve the same as sudo chmod 755 myfile would.
I found getPermissions and setPermissions in System.Directory, but that only allows me to set permissions for the current user (in my case root).
Do equivalent functions exist that apply to all users or is the only viable option to use a rawSystem call, which I consider a bit unclean?
System.Posix.Filesin the standard unix package has POSIX files permission support. The reasonSystem.Directorydoesn’t offer such functionality is for portability.