code: function gli_stream_flush_file(str) {
      if (str.streaming)
          GlkOte.log('### gli_stream_flush_file called for streaming file!');
      if (!(str.timer_id === null)) {
          clearTimeout(str.timer_id);
      }
      str.timer_id = null;
      Dialog.file_write(str.ref, str.buf);
  }
docs: /* Write out the contents of a file stream to the "disk file". Because
  localStorage doesn't support appending, we have to dump the entire
  buffer out.