 p);
    requests.add("PUT", "/edit", formData, httpPostProcessRequest);
  }
  
  mkfile.onclick = function(e){
    createPath(path.value);
    editor.loadUrl(path.value);
    path.value="/";
  };

  savefile.onclick = function(e){
    editor.execCommand('saveCommand');
  };
  
  refresh.onclick = function(e){
    tree.refreshPath(path.value);
  };
  
  button.onclick = function(e){
    if(input.files.length === 0){
      return;
    }
    var formData = new FormData();
    formData.append("data", input.fil