We are using a java class to dowload a file from AWS s3 bucket with the following code
inputStream = AWSFileUtil.getInputStream( AWSConnectionUtil.g
this is simple way to find existing folder in bucket. above answer also true. folder name contain '/' at last , it return true .
note: mybucket/userProfileModule/abc.pdf, it my folder structrue
boolean result1 = s3client.doesObjectExist("mybucket", "userProfileModule/"); System.out.println(result);