Measure a folder
stat_prefixHow many objects sit under a prefix at any depth, how many bytes they take together, and which is newest and largest. Call it before delete_prefix to tell the user what would be destroyed - but end the prefix in '/' when you do, because an unslashed 'old-logs' also counts 'old-logs-archive/...', which delete_prefix would refuse to touch.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bucket | Yes | Bucket name. | |
| prefix | No | Key prefix to measure, e.g. 'logs/'. Empty measures the whole bucket. | |
| connectionId | Yes | Connection id from list_connections. |