Skip to contents

Generates the full object name for a versioned file in cloud storage. When `version = "latest"`, returns the most recently updated object matching the prefix and extension.

Usage

cloud_object_name(
  prefix,
  version = "latest",
  extension = "",
  provider,
  exact_match = FALSE,
  options
)

Arguments

prefix

A character string specifying the file prefix.

version

A character string specifying the version. Default is "latest".

extension

A character string specifying the file extension.

provider

A character string specifying the cloud storage provider.

exact_match

A logical value indicating whether to match prefix exactly.

options

A named list of cloud storage provider options.

Value

A character string with the full object name, or `character(0)` if no matching objects are found.