private static string GenFileTreeChilds(WFileNode root) { var files = Utils.Concat(Utils.FMap(root.ChildLeafs, a => a + "|")); var dirs = Utils.Concat(Utils.FMap(root.ChildNodes, GenFileTreeChilds)); return("*" + root.Name + "|" + (files.Length + dirs.Length) + "{" + files + dirs + "}"); }
public static string GenFileTree(WFileNode root) { var files = Utils.Concat(Utils.FMap(root.ChildLeafs, a => a + "|")); var dirs = Utils.Concat(Utils.FMap(root.ChildNodes, GenFileTreeChilds)); return(files + dirs + "}"); }