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

Function encodeS3PathComponent

apps/sim/tools/s3/utils.ts:3–5  ·  view source on GitHub ↗
(pathComponent: string)

Source from the content-addressed store, hash-verified

1import crypto from 'crypto'
2
3export function encodeS3PathComponent(pathComponent: string): string {
4 return encodeURIComponent(pathComponent).replace(/%2F/g, '/')
5}
6
7export function getSignatureKey(
8 key: string,

Callers 4

get_object.tsFile · 0.90
buildObjectPathFunction · 0.90
buildBucketPathFunction · 0.90
generatePresignedUrlFunction · 0.85

Calls 1

replaceMethod · 0.65

Tested by

no test coverage detected