c# - How to check accessibility of a folder? -


this question has answer here:

i have shared folder. how check in c# whether current user has been given access folder?

i have tried securitymanager.isgranted somehow not doing me good. because file, not folder.

use directory.exists return false if don't have permission.

see remarks section in msdn

also suggested in answer @jbriggs should unautorizedaccessexception if don't have access.


Comments

Popular posts from this blog

rdbms - what exactly the undo information lives in oracle? -

bash - How do you programmatically add a bats test? -

java - Getting exception in JDBC thin driver -