Is it possible to access a directory from Google Cloud Storage without adding index.html?

I want to use Google Cloud Storage as a static website, and the object index.htmlis stored in my bucket folder / folder, let's saymy-directory

Available only in this place www.example.com/my-directory/index.html, but I want to access as www.example.com/my-directory/Is it possible?

I tried adding MainPageSuffix as index.html, but it only works at the root level.

+2
source share
1 answer

: , - , , my-directory/ my-directory/index.html, , , , my-directory/.

, gsutil:

gsutil ls -R gs://my-bucket/my-directory*

, :

gs://my-bucket/my-directory/:
gs://my-bucket/my-directory/           <- This is the empty object
gs://my-bucket/my-directory/index.html

, gsutil , :

gsutil rm gs://my-bucket/my-directory/

+2

All Articles