public void Refresh()
{
string logicalPath = path;
isDir = !File.Exists(logicalPath);
if (path.EndsWith(".disabled"))
{
enabled = false;
logicalPath = logicalPath.Replace(".disabled", "");
}
else
{
enabled = true;
}
isSeparator = !isDir && (path.EndsWith("separator") || path.EndsWith("separator.disabled"));
isConsole = !isDir && !isSeparator && path.EndsWith(".c.cmd");
level = path.Split(Path.DirectorySeparatorChar).Length - 1;
}
public override string ToString()