I writing an iOS app that uploads and downloads files from an Amazon S3 bucket. I got said functionality working, but I need to write unit tests for it. Is there any way I can check if a file exists in my bucket so that I can confirm that it has been uploaded??
Asked
Active
Viewed 1,792 times
1 Answers
1
AWSS3
has a method called - headObject:
. You can use it to see if the object exists in the bucket.

Yosuke
- 3,759
- 1
- 11
- 21
-
is there any reason to return null with headObject – Mr.G Aug 27 '15 at 10:05