Skip to content

Display INDEX_DOCUMENT if exists and DIRECTORY_LISTINGS=true #43

@EvgeniGordeev

Description

@EvgeniGordeev

Feature or enhancement request

It's a feature enhancement to display folder content or index.html if exists. New variable DIRECTORY_LISTINGS_CHECK_INDEX is introduced to control the behavior.

Given s3 bucket content:

├── folder
├── ── subfolder1
│   └────  index.html
├── ── subfolder2
│   └────  index.html
└── index.html

Desired result if DIRECTORY_LISTINGS=true and DIRECTORY_LISTINGS_CHECK_INDEX=true:
GET / returns /index.html content
GET /folder/ returns list of folders - [subfolder1, subfolder2]
GET /folder/subfolder1 returns /folder/subfolder1/index.html content
GET /folder/subfolder2 returns /folder/subfolder2/index.html content

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions