MCPcopy Index your code
hub / github.com/simstudioai/sim / buildBucketPath

Function buildBucketPath

apps/sim/connectors/s3/s3.ts:248–250  ·  view source on GitHub ↗

* Builds the canonical URI for a bucket-level (ListObjectsV2) request. * * AWS (virtual-hosted-style): `/`. * Custom endpoint (path-style): `/{bucket}/`.

(ctx: S3Context)

Source from the content-addressed store, hash-verified

246 * Custom endpoint (path-style): `/{bucket}/`.
247 */
248function buildBucketPath(ctx: S3Context): string {
249 return ctx.endpoint ? `/${encodeS3PathComponent(ctx.bucket)}/` : '/'
250}
251
252/**
253 * Builds the full request URL from the canonical path and an optional canonical

Callers 1

listObjectsPageFunction · 0.85

Calls 1

encodeS3PathComponentFunction · 0.90

Tested by

no test coverage detected