Home c# строка не найдена

строка не найдена

Author

Date

Category

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;

Programmers, Start Your Engines!

Why spend time searching for the correct question and then entering your answer when you can find it in a second? That's what CompuTicket is all about! Here you'll find thousands of questions and answers from hundreds of computer languages.

Recent questions