buffer::save

Request to save the buffer.

{
    "method": "buffer::save",
    "file": <path>,
    "contents": <string>,
}
  • file is the target filename you want to save.
  • contents is the entire buffer string.
Example response
{
    "method": "buffer::save",
    "file": <path>,
    "contents": <string>,
    "status": "success",
}

The client will save the buffer in the view (if it exits). Otherwise, it will write the file to the local storage.


Last modified September 13, 2024: docs (076b384)