private static void WriteToNewFileWithOwnerRWPermissions()

in CredentialProvider.Microsoft/Util/EncryptedFileWithPermissions.cs [84:99]


        private static void WriteToNewFileWithOwnerRWPermissions(string path, byte[] bytes)
        {

            if (SharedUtilities.IsWindowsPlatform())
            {
                WriteToNewFileWithOwnerRWPermissionsWindows(path, bytes);
            }
            else if (SharedUtilities.IsMacPlatform() || SharedUtilities.IsLinuxPlatform())
            {
                WriteToNewFileWithOwnerRWPermissionsUnix(path, bytes);
            }
            else
            {
                throw new PlatformNotSupportedException();
            }
        }