Apache OpenDAL™ - v0.48.1
    Preparing search index...

    Class BlockingWriter

    BlockingWriter is designed to write data into a given path in a blocking manner.

    Index

    Constructors

    Methods

    • Safety

      &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();

      Returns void

    • Create a writable stream from the underlying writer.

      Parameters

      • Optionaloptions: WritableOptions

      Returns Writable

    • Safety

      &mut self in async napi methods should be marked as unsafe

      Write bytes into this writer.

      const writer = await op.writer("path/to/file");
      await writer.write(Buffer.from("hello world"));
      await writer.close();

      Parameters

      • content: string | Buffer

      Returns void