@ -165,7 +165,7 @@ public class S3ResourceRepository extends BaseResourceRepository {
@Override
public boolean exist(String path) {
try {
return s3.listObjectsV2(bucket, path).getKeyCount() > 0;
return !s3.listObjects(bucket, path).getObjectSummaries().isEmpty();
} catch (Exception e) {
return false;
}