Interface WriteOptions

interface WriteOptions {
    append?: boolean;
    cacheControl?: string;
    chunk?: bigint;
    contentDisposition?: string;
    contentType?: string;
}

Properties

append?: boolean

Append bytes into a path.

Notes

  • It always appends content to the end of the file.
  • It will create file if the path does not exist.
cacheControl?: string

Set the Cache-Control of op.

chunk?: bigint

Set the chunk of op.

If chunk is set, the data will be chunked by the underlying writer.

NOTE

A service could have their own minimum chunk size while perform write operations like multipart uploads. So the chunk size may be larger than the given buffer size.

contentDisposition?: string

Set the Content-Disposition of op.

contentType?: string

Set the Content-Type of op.

Copyright © 2022-2024, The Apache Software Foundation. Apache OpenDAL, OpenDAL, and Apache are either registered trademarks or trademarks of the Apache Software Foundation.