Skip to contents

The publishers' form of canonical_path(): the identity is a directory and the file keeps its readable name, so one object per distinct content is stored once and every release that carries the same content points at it.

Usage

publish_object_path(
  publisher,
  dataset_key,
  content_hash,
  file = NULL,
  prefix = "publish"
)

Arguments

publisher

zip, netcdf, edi, dwca, … (the folder under prefix)

dataset_key

the dataset

content_hash

the object's identity (publish_fingerprint()); its first 24 characters name the directory, as in canonical_path()

file

the file name inside it; NULL gives the directory

prefix

bucket-relative prefix

Value

A bucket-relative path: {prefix}/{publisher}/{dataset_key}/{hash24}/{file}.