I'm trying to set a file to hidden in the iOS project of my Xamarin.Forms app, but the attributes don't ever seem to stick, even though no error occurs.
File.SetAttributes(path, File.GetAttributes(path) | FileAttributes.Hidden);
var fi = new FileInfo(path); fi.Attributes |= FileAttributes.Hidden;
Neither of these seem to work. Checking the attributes of the file after shows only one attribute:
The documentation makes it seem like I shouldn't have any problem doing this. Am I missing something?