Skip to content

Instantly share code, notes, and snippets.

@ober
Created September 27, 2015 06:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ober/b5d9b69f6978827a2782 to your computer and use it in GitHub Desktop.
Save ober/b5d9b69f6978827a2782 to your computer and use it in GitHub Desktop.
valid?
(defn list-files
"Get list of all files in there"
(loop [ files {} ]
(let [ hit (s3/list-objects cred "somebuckets") ]
(if (:truncated? hit)
(recur (conj files (:objects hit)))
files))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment