backblaze-labs/b2-action - v0.1.0
    Preparing search index...

    Function presignCommand

    • Generate a presigned download URL for one B2 file or every file under a prefix.

      Modes:

      • source ending in / → prefix mode. List the prefix and emit one presigned URL per file (capped by max-results). All URLs share the same b2_get_download_authorization token because the auth scope is prefix-based; we just expand it into one URL per matched object.
      • Otherwise → single-file mode (the original behavior).

      Every URL is masked via core.setSecret so subsequent log lines redact them. The first URL is also exposed as the presigned-url step output for the most common one-file workflow.

      Parameters

      Returns Promise<PresignResult>