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

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

jsf - How to ajax update an item in the footer of a PrimeFaces dataTable? -

django - CSRF verification failed. Request aborted. CSRF cookie not set -