Get The Attributes Of The C Directory#

In C#, there is such a construction:

File.GetAttributes(path);

Such a construction helps to find out what attributes the file has at the path specified in the path(ReadOnly, System, Hide, etc.). I need to get the attributes of the directory. But I don't see such a construction as with files. How is this problem solved in C# ?e how do I get the directory attributes?

Author: umd, 2018-11-18

1 answers

For example, so: DirectoryInfo dir = new DirectoryInfo(path); var attr = dir.Attributes;

 0
Author: Leonax, 2018-11-18 20:13:22