@Debayan Mukherjeeโ
All the information is there please read accurately. I am not going to give you the actual bucket name I am using on a public forum. As i said above here is the command:
dbutils.fs.ls("s3a://${bucket_name_here_follow_above_format}")
where format is "${sometext}.${sometext}.${somenumber}${sometext}-${sometext}-${sometext}"
so an example command is: dbutils.fs.ls("s3a://testtext.testtext.4303testtext-testtext-testtext").
We had to use an S3 access point name because the actual name of bucket did not work and has the above Traceback.