Skip to main content

List objects

list_objects(prefix="", recursive=False, last_key=None)

Lists all object metadata from Storage.

page1 = storage.list_objects(prefix="directory/data")
page2 = storage.list_objects(prefix="directory/data", last_key=page1[-1])

Parameters

ParamTypeDescriptionRequired
prefixstrObject key starts with prefixFalse
recursiveboolList recursively through directory structureFalse
last_keystrList objects after this key nameFalse