I have a TreeView
that maps and populates all the folders in a directory, I'm passing in the variable virtualPath
Is there is any function or property that can tell me if the directory is blocked or not blocked? So that I can show a message to the user saying that he does not have privileges to access the directory.
String[] directories= Listdirectories(virtualPath.ToString());
foreach (string directory in directories) {
node = new RadTreeNode(Path.GetDirectoryName(directory .ToString()));
node.Value = virtualPath + "\\" + Path.GetFileName(directory .ToString());
parentNode.Nodes.Add(node);
}