In C # there is such a design:
file.getattributes (path);
Such a hood helps to find out what attributes from the file on the path indicated in the path (readonly, System, Hide, etc.).
I need to get the attributes of the directory. But here such a housing like with files I do not see.
How this task is solved on C #, i h how to get directory attributes?
Answer 1
For example, so:
DirectoryInfo Dir = New DirectoryInfo (PATH);
var attr = dir.attributes;