Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi I have a bucket in S3 like "abc-bucket" it has different folders like "a" , "b", etc.
Each folder has different files but i just want the name of the folders.
my job should give me a list of folders inside the bucket
Hi,
have you tried tS3List ? It lists all objects in bucket but you can try to locate last slash(/) in ((String)globalMap.get("tS3List_1_CURRENT_KEY")) and make a substring from the begining to lastIndexOf /.
Hi, I have tried it already and also the solution you are explaining but the issue is it will first read all folders and all files then will give the desired output. But what i want is only folder names and in a quick time.
The problem is for s3 there are no files and folders, there are just objects. As my knowledge, there is no predefined metod, even in AWS cli, to list only folders.