How do I check if a directory is locked in a TreeView?
<p>I have a <code>TreeView</code> that maps and populates all the folders in a directory, I'm passing in the variable <code>virtualPath</code></p>

<p>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.</p>

<pre><code>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);
}
</code></pre>
