chickadee » amazon-s3 » with-bucket

(with-bucket bucket ...)syntax

All amazon-s3 operations in the body will use the specified bucket without requiring it to be explicitly set.

WARNING! DEPRECATED This is broken and only works with calls that start with bucket. The next version of this lib will make this pattern obsolete.

(with-bucket "foo"
  (put-file! "foo-file" "~/foo")
  (get-file "foo-file" "~/foo2"))

(with-bucket "foo"
  (+ 1 2 3)) ; this will not work!