Cheking folder or file permissions

In my C# winform app. what is the proper and quicker way to check a folder or file write/read  permissions before loading the app.?
yaron89Asked:
Who is Participating?
 
Meir RivkinFull stack Software EngineerCommented:
0
 
Vadim RappCommented:
Checking existing permissions will validate what should be. If you want to check what is, then try to read from and write to, i.e. try exactly what your application will be doing.

The difference between should and is is exactly what makes people come to E-E with the question "I have correct permissions, but for some reason my application does not work".
0
 
yaron89Author Commented:
Thank you
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.