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

Linux vanilla kernel on QEMU and networking with eth0 -

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

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