-
-
Notifications
You must be signed in to change notification settings - Fork 13
Closed
Labels
Description
When creating a Dot-File (e.g. .env) the file does not get the Hidden attribute
This does not happen for mocked Linux
var fileSystem = new MockFileSystem(o => o.SimulatingOperatingSystem(SimulationMode.MacOS));
var info = fileSystem.FileInfo.New(".dot");
info.Create().Dispose();
info.Refresh();
Console.WriteLine("Name: {0}", info.Name);
Console.WriteLine("Attributes: {0}", info.Attributes);
Console.WriteLine("Hidden: {0}", info.Attributes.HasFlag(FileAttributes.Hidden));
Console.WriteLine("System: {0}", info.Attributes.HasFlag(FileAttributes.System));Expected:
Name: .dot
Attributes: Hidden
Hidden: True
System: False
Actual:
Name: .dot
Attributes: Normal
Hidden: False
System: False
Reactions are currently unavailable