Skip to content

A HEAD request: size, content type, modification time, ETag and user metadata, without downloading the object.

Usage

head_s3(key, bucket = NULL, config = s3_config())

Arguments

key

Object key inside bucket, or an s3://bucket/key URL.

bucket

Bucket; defaults to the config's bucket (S3PE_BUCKET).

config

An s3_config().

Value

A one-row tibble (key, size, content_type, last_modified, etag, and metadata, a list column holding the named list of user metadata), or NULL when the object does not exist.

Examples

if (FALSE) { # interactive()
head_s3("data/manifest.json", bucket = "my-bucket")
}