Is it safe to rely on versions ordering in ListObjectVersions response?

0

I have tried calling ListObjectVersions several times and it looks like versions are always sorted from newest to oldest. Is it safe to rely on the assumption that ListObjectVersions will always return all object versions and versions will be sorted from newest to oldest?

Mojex
已提問 1 年前檢視次數 487 次
1 個回答
0
已接受的答案

Hello,

The second example in the documentation states that objects are returned in the order they are stored: https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListObjectVersions.html#API_ListObjectVersions_Examples

Regards, Jon

profile pictureAWS
專家
已回答 1 年前

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

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

回答問題指南