BlockingWriter is designed to write data into given path in an blocking manner.
&mut self in async napi methods should be marked as unsafe
Close this writer.
const writer = op.writerSync("path/to/file");writer.write(Buffer.from("hello world"));writer.close(); Copy
const writer = op.writerSync("path/to/file");writer.write(Buffer.from("hello world"));writer.close();
Create a writable stream from the underlying writer.
Optional
Write bytes into this writer.
const writer = await op.writer("path/to/file");await writer.write(Buffer.from("hello world"));await writer.close(); Copy
const writer = await op.writer("path/to/file");await writer.write(Buffer.from("hello world"));await writer.close();
Copyright © 2022-2024, The Apache Software Foundation. Apache OpenDAL, OpenDAL, and Apache are either registered trademarks or trademarks of the Apache Software Foundation.
BlockingWriter is designed to write data into given path in an blocking manner.