Skip to content

Trailing slash on folders download empty file / Folders listed as files #731

@yaneony

Description

@yaneony

I have created new Bucket, set it to public. When i access the bucket itself, no problem, I see all listed files and folders. Now for example I have "files" folder.

http://127.0.0.1:9000/bucket - display all files and folders, but, folders are listed as 0 bytes.
http://127.0.0.1:9000/bucket/folder - display NoSuchKey error
http://127.0.0.1:9000/bucket/folder/ - downloads file with random name as 0 bytes file

That's how folders are listed:

<Contents>
  <ETag>"d41d8cd98f00b204e9800998ecf8427e"</ETag>
  <Key>folder/</Key>
  <LastModified>2025-10-26T17:29:23.345Z</LastModified>
  <Size>0</Size>
</Contents>

Is that supposed to be like that? What's the reason downloading empty folder files or displaying folders as 0 bytes files?

Metadata

Metadata

Assignees

Labels

S-confirmingStatus: Awaiting confirmation for a resolved issue

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions