Exemplo n.º 1
0
 public static void mergepath(storagenode node, string combinepath, bool brelative)
 {
     mergepath(ref node.nodedata.physicalpath, combinepath, brelative);
     foreach (var n in node.children)
     {
         mergepath(n, combinepath, brelative);
     }
 }
Exemplo n.º 2
0
        public static storagenode getstoragenode(string filename)
        {
            object[] objs = JSONPersister <object[]> .Read(filename);

            string buffer = JSONPersister <object> .GetJSON((object)objs[1]);

            storagenode node = JSONPersister <storagenode> .SetJSON(buffer);

            mergepath(node, Path.GetDirectoryName(filename), false);
            return(node);
        }
Exemplo n.º 3
0
 public static void write(string filename, container co, storagenode sn)
 {
     JSONPersister <object[]> .Write(filename, new object[] { co, sn });
 }