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
Post a Comment