Skip to content

Instantly share code, notes, and snippets.

@erez-rabih
Created June 3, 2019 06:30
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 erez-rabih/7bfe7e32df98000c1e4caa36d2014b1a to your computer and use it in GitHub Desktop.
Save erez-rabih/7bfe7e32df98000c1e4caa36d2014b1a to your computer and use it in GitHub Desktop.
s3 get file metadata broken
(defn get-file-metadata [bucket filename]
(try
(s3/get-object :bucket-name "bucket" :key filename)
(catch com.amazonaws.services.s3.model.AmazonS3Exception e nil)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment