I have been struggling reading nested folders stored on one of bucket on S3, using Scala. I wrote script with my credentials. In bucket - there are many folders. Let say one folder name is "folder1". In this folder there are many subfolders and so on. I want to get names of each subfolder(any each inside them) for folder1.
val yourAWSCredentials = new BasicAWSCredentials(AWS_ACCESS_KEY, AWS_SECRET_KEY)
val amazonS3Client = new AmazonS3Client(yourAWSCredentials)
print(amazonS3Client.listObjects(bucketName,"folder1").getObjectSummaries())
But this returns not the structure I need. May be there is easier way to get the path?