I want to list all the buckets from cloud storage which matches gs://bucketname*
. I have tried using gsutil which is working but the same is not working from spark read or readstream.
gs://bucket1 gs://bucket2 gs://bucketN
working: gsutil ls gs://bucket*/mydir/abcd*.txt
not working: sc.textFile("gs://bucket*/mydir/abcd*.txt")