AWS S3 file search using Java

后端 未结 3 1590
傲寒
傲寒 2021-02-13 11:14

We are using a java class to dowload a file from AWS s3 bucket with the following code

inputStream = AWSFileUtil.getInputStream(
            AWSConnectionUtil.g         


        
3条回答
  •  一整个雨季
    2021-02-13 11:38

    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);
    

提交回复
热议问题