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
demandé il y a un an526 vues
1 réponse
0
Réponse acceptée

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
EXPERT
répondu il y a un an

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions