| 1. |
Solve : How can I for directory access.? |
|
Answer» I need to check if I have access to a directory. I'm doing this now, by trying to create a file in that directory and then I'm checking if it exists. In Visual Studio post build event that returns an error if I have no access. I don't KNOW how to get rid of that error.To check access to a directory, why not just try to open the directory?What do you mean? I can navigate to the directory. I just can not create objects there. So my check has to figure out if I'm allowed to create folders there.It seems odd that you can access it and yet not create files. If access was denied, you'd get a message saying "Access is denied" when you TRIED to open the folder. |
|