I’d like to create a file with 600 permissions (rw-------), but there’s a race condition if I create it and then change the permissions.
Is there any way to specify file permissions at the same time as creating the file? C’s creat function allows me to specify S_IRUSR | S_IWUSR. Is there any equivalent in Elixir?