Exemplo n.º 1
0
        public override Errno OnGetPathStatus(ExpandedPath path, out NamedStat entry)
        {
            LoadChromosomeList(path);

            var species    = path.Components[0];
            var chromosome = path.Components.Last();

            if (chromosomes.ContainsKey(species))
            {
                entry = chromosomes[species].Where(ns => ns.Name == chromosome).First();
                return(0);
            }
            else
            {
                entry = new NamedStat();
                return(Errno.ENOENT);
            }
        }
Exemplo n.º 2
0
 public abstract Errno OnGetPathStatus(
     ExpandedPath path,
     out NamedStat entry);