MergeFolderTrees() public static method

Merges the given new child list into the existing childs of the given node
public static MergeFolderTrees ( Node node, List children ) : void
node Node
children List
return void
Esempio n. 1
0
 /// <summary>
 /// Merges the given ignored folders as children to the given root folder node
 /// </summary>
 /// <param name="root"></param>
 /// <param name="ignoredFolder"></param>
 public static void AddIgnoredFolderToRootNode(RootFolder root, List <string> ignoredFolder)
 {
     AsyncNodeLoader.MergeFolderTrees(root, CreateNodesFormIgnoredFolders(ignoredFolder));
 }
Esempio n. 2
0
        /// <summary>
        /// Merges the sub folder of the given path to the given Repo Node
        /// </summary>
        /// <param name="repo"></param>
        /// <param name="localPath"></param>
        public static void AddLocalFolderToRootNode(RootFolder repo, string localPath)
        {
            List <Node> children = CreateNodesFromLocalFolder(localPath, repo);

            AsyncNodeLoader.MergeFolderTrees(repo, children);
        }