Write contents to file on disk (sync buffer to file).
Writes to disk only. Unlike write(), this does not update the buffer contents. Client persistence (db, scan) is via File.rpc_write RPC on the daemon.
| contents |
Contents to write |
| Error |
if file cannot be written |