public void Add(HarvestNode node)
 {
     if (node.Type == Enums.NodeType.DIRECTORY)
     {
         AddSubDdirectory___(node as HarvestDirectoryNode);
         return;
     }
     AddFile___(node as HarvestFileNode);
 }
        public HarvestNode GetChildNode(HarvestNode search)
        {
            HarvestNode ret;

            if (search.Hash == Hash)
            {
                return(this);
            }

            ret = _directories.Find(x =>
                                    x.Hash == search.Hash
                                    );

            return(ret);
        }
Exemplo n.º 3
0
 public void AddVersion(HarvestNode fileVersion)
 {
     Versions.Add(fileVersion);
     Versions = Versions.OrderByDescending(x => x.VersionNo).ToList();
 }