Skip to contents

File ingestion is explicit. The path must identify a regular file no larger than the store byte bound, and file bytes are never deserialized or executed.

Usage

graft_save_file(
  store,
  path,
  id = basename(path),
  media_type = "application/octet-stream",
  dependencies = list(),
  max_artifacts = 1000L
)

Arguments

store

A store returned by graft_store() or graft_store_postgres().

path

Path to a regular file.

id

Stable artifact identity; defaults to basename() of path.

media_type

Media type recorded for the bytes.

dependencies

One ArtifactRef or a list of them.

max_artifacts

Maximum dependency references to verify.

Value

An ArtifactRef.