code: function applyOperations(operations) {
    for(var i = 0; i < operations.length; i++) {
      var {_1: path, _2: action} = operations[i];
      if(action["$d_ctor"] == "Write") {
        fs.writeFileSync(path, action.args._2, "utf8");
      } else if(action["$d_ctor"] == "Create") {
        // TODO: Create the path if necessary
        fs.writeFileSync(path, action.args._1, "utf8");
      } else if(action["$d_ctor"] == "Rename") {
        if(path.startsWith("/")) path = path.substring(1);
        var newName = action.args._1;
        if(newName.startsWith("/")) newName = newName.substring(1);
        fs.renameSync(path, newName);
      } else if(action["$d_ctor"] == "Delete") {
        fs.unlinkSync(path);
      } else {
        console.log("unrecognized action:", action);
      }
    }
  }
docs: Apply the given operations to the file system. TODO: Merge different writes to a single file.