Exemple #1
0
        private void IndexChild(Tuple <Entity, string> child, List <Tuple <Entity, string> > newChildren)
        {
            string childName = child.Item1.Original.NameDecorator.SystemName;
            string path      = Path.Combine(child.Item2, childName);

            if (child.Item1.Original.ContainerDecorator != null)
            {
                var childChildren = api.GetChildren(child.Item1).Select(c =>
                                                                        Tuple.Create(c, path)
                                                                        );
                var childChildrenList = childChildren.ToList();
                newChildren.AddRange(childChildrenList);

                DeleteUnavailableChildren(path, childChildrenList);
            }

            FileReaderWriter.WriteEntityToDisk(path, child.Item1);
        }