MCPcopy Create free account
hub / github.com/ScattrdBlade/bigFileUpload / buildS3Path

Function buildS3Path

utils/s3.ts:55–63  ·  view source on GitHub ↗
(...parts: string[])

Source from the content-addressed store, hash-verified

53}
54
55function buildS3Path(...parts: string[]): string {
56 const normalized = parts
57 .filter(Boolean)
58 .flatMap(part => part.split("/"))
59 .filter(Boolean)
60 .map(encodeRfc3986)
61 .join("/");
62 return normalized ? `/${normalized}` : "/";
63}
64
65function getTimestampParts(date: Date): { amzDate: string; dateStamp: string; } {
66 const year = date.getUTCFullYear();

Callers 1

uploadToS3Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected