s6.app.r2.downloadΒΆ

Download a single object or all objects under a prefix.

UsageΒΆ

s6 r2 download <object-or-prefix> [-o DIR] [-b BUCKET] [-e ENDPOINT]

BehaviorΒΆ

  • If the argument ends with β€˜/’, it is treated as a prefix and the entire subtree is downloaded into DIR preserving structure.

  • Otherwise the command tries to resolve whether the key is an object; if a matching object exists, it downloads to DIR/<key> creating parents. If no exact object match is found but objects exist under the key as a prefix, it downloads the subtree instead.

s6.app.r2.download.main() None