예제 #1
0
 public void CreateFileTree()
 {
     var argumentSize = _packet.Args.Count;
     var path = _packet.Args[0].ToString();
     var deepWalk = false;
     if (argumentSize > 1)
     {
         deepWalk = (bool) _packet.Args[1];
     }
     var tree = new FileTree(path, deepWalk);
     _builder.WriteMessage(tree);
 }
예제 #2
0
 public void CreateFileTree()
 {
     var argumentSize = packet.args.Count;
     var path = packet.args.First().ToString();
     var deepWalk = false;
     if (argumentSize > 1)
     {
         deepWalk = (bool) packet.args[1];
     }
     var tree = new FileTree(path, deepWalk);
     serializator.Serialize(_client, packet.endpoint, packet.syncKey, tree);
 }