Skip to contents

S3/Spaces doesn't have real directories, but many tools expect them. This creates a zero-byte placeholder object to emulate a directory.

Usage

cdn_create_directory(prefix, bucket)

Arguments

prefix

CDN path for the directory (trailing slash added if missing).

bucket

CDN bucket name.

Value

Raw S3 response (invisibly).

Functions

  • cdn_create_directory(): Create directory placeholder

Examples

if (FALSE) { # \dontrun{
cdn_create_directory("processed/artist-uuid/artwork-uuid", "art-data")
} # }