S3 "folders" in console UI

0

I get the whole non-hierarchical object storage concept, I just wonder if I'm missing something or if "folders" that aren't really folders are handled inconsistently in the web console:

Enter image description here

So "folders" can be created and they can also be uploaded, but they can't be (recursively) downloaded. Is that supposed to be like this? I know I can just use the cli for that, but I'm thinking about users who feel more comfortable with a GUI... any idea what's going on here?

Thanks,

Marc

Marc
已提問 2 年前檢視次數 271 次
2 個答案
1
已接受的答案

Hello,

You are right, S3 is a flat structure and there is no "folders". "Folders" actually just an empty object (0 bytes) just to keep a path (key) after all files with this path were deleted. You are able to upload "folders" because you are actually uploading many files with a specific key (path), but you couldn't download folder because this is not a real object, it is just a bunch of files with a same key (path). In other words to download "folder" you need to initiate download of many object as separate calls, CLI is doing it for you, but browser couldn't do that,

AWS
已回答 2 年前
0

Thanks for your reply, Aleksandr. Like I said, I do understand that S3 is supposed to be a flat object storage space.

What I don't get is why AWS would design it like that, then re-introduce the concept of folders by treating object names with a '/' at the end differently, and then leave out half of it by not implementing downloads in some way that is at least somewhat intuitive. For example, create an archive of files with the 'folder' prefix and offer that as a download if someone marks a 'folder' and clicks the download button.

The way it currently works makes it impossible to use the S3 console as a means for sharing files, because people will start creating and uploading folders that others then can't download - inevitable chaos :(

Cheers,

Marc

Marc
已回答 2 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南