I am trying to list of files in my GCP bucket using Google Cloud Storage SDK using scala.
For example I have a bucket named bucket-1 and there is a folder inside it folder-1 and I want to list all the files inside folder-1.
I tried using below code but it doesn't return anything inside folder-1
val files = storage.list("bucket-1",BlobListOption.currentDirectory(), BlobListOption.prefix("folder-1"))
The problem is objects/files inside the folder-1 doesn't have any set prefix due to which I can't add it in BlobListOption.prefix call.