(raw: string | undefined)
| 22 | } |
| 23 | |
| 24 | export function normalizePrefix(raw: string | undefined): string { |
| 25 | if (!raw) return '' |
| 26 | const trimmed = raw.replace(/^\/+/, '').replace(/\/+$/, '') |
| 27 | return trimmed.length === 0 ? '' : `${trimmed}/` |
| 28 | } |
| 29 | |
| 30 | export interface ObjectKeyMetadata { |
| 31 | drainId: string |