Created
June 3, 2019 06:30
-
-
Save erez-rabih/7bfe7e32df98000c1e4caa36d2014b1a to your computer and use it in GitHub Desktop.
s3 get file metadata broken
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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