@backblaze-labs/b2-sdk - v0.1.0
    Preparing search index...

    Variable MetadataDirectiveConst

    MetadataDirective: { Copy: "COPY"; Replace: "REPLACE" } = ...

    Named constants for how metadata is handled during a file copy.

    Type Declaration

    • ReadonlyCopy: "COPY"

      Preserve the source file's contentType and fileInfo.

    • ReadonlyReplace: "REPLACE"

      Use the values provided in the copy request.

    await bucket.copyFile({ ..., metadataDirective: MetadataDirective.Replace })