For example, s3 has three folders:
folder/folder1/subfolder1
folder/folder2/subfolder1
folder/folder2/subfolder2
So I need path for all subfolder1. Expected answer:
folder/folder2/subfolder1
folder/folder1/subfolder1
For example, s3 has three folders:
folder/folder1/subfolder1
folder/folder2/subfolder1
folder/folder2/subfolder2
So I need path for all subfolder1. Expected answer:
folder/folder2/subfolder1
folder/folder1/subfolder1
2
Answers
According to this document https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/S3.html#listObjectsV2-property,