public IEnumerable <RecorderNode> TryGetNodes(string path)
        {
            path = path.Replace("\\", "/");
            int f = path.IndexOf("/");

            if (f == -1)
            {
                return(Nodes.Where(o => o.Name == path));
            }

            string       name = path.Substring(0, f);
            RecorderNode node = Nodes.FirstOrDefault(o => o.Name == name);

            if (node == null)
            {
                return(new List <RecorderNode>());
            }
            return(node.TryGetNodes(path.Substring(f + 1)));
        }
Beispiel #2
0
 public IEnumerable <RecorderNode> TryGetNodes(string path)
 {
     return(mRoot.TryGetNodes(path));
 }