public Node Access(String Path, bool CreateNode = false)
{
int Index;
// Has components
if ((Index = Path.IndexOf('/')) >= 0)
{
if (Index == 0)
{
//Console.WriteLine("[1]");
}
if (Index == Path.Length - 1)
{
//Console.WriteLine("[2]");
}
return AccessChild(Path.Substring(0, Index), CreateNode).Access(Path.Substring(Index + 1), CreateNode);
}
// No more components
else
{
return AccessChild(Path, CreateNode);
}
}
}