• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 417
  • Last Modified:

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.?
0
yaron89
Asked:
yaron89
1 Solution
 
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

Featured Post

[Webinar] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now