private PermissionInfo GetFirstInfo(string path)
{
var p = path;
PermissionInfo parent;
while (true)
{
if (permissionTable.TryGetValue(p, out parent))
return parent;
if (p.ToLower() == "/root")
break;
p = RepositoryPath.GetParentPath(p);
}
return null;
}