Esempio n. 1
0
        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 + "}");
        }
Esempio n. 2
0
        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 + "}");
        }