Closed
Description
Background and motivation
Similar to #79868, but for System.IO.FileAttributes.
One use-case for the 0
value is when enumerating files. 0
allows to not exclude files from enumeration based on their attributes.
new System.IO.EnumerationOptions()
{
AttributesToSkip = 0,
}
API Proposal
namespace System.IO;
[System.Flags]
public enum FileAttributes
{
None = 0,
// Existing values:
// ReadOnly
// Hidden
// ...
API Usage
Directory.EnumerateFiles("folder", "*", new System.IO.EnumerationOptions()
{
AttributesToSkip = FileAttributes.None,
});
Could also be used in
Alternative Designs
No response
Risks
No response