2

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??

Yosuke
  • 3,759
  • 1
  • 11
  • 21
WaltersGE1
  • 813
  • 7
  • 26

1 Answers1

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