[#324]Extension list_objects method

This commit is contained in:
Roman Chernykh 2024-11-18 13:01:26 +03:00 committed by Roman Chernykh
parent 0c9660fffc
commit 24e1dfef28
3 changed files with 23 additions and 5 deletions

View file

@ -195,7 +195,9 @@ class S3ClientWrapper(HumanReadableABC):
"""
@abstractmethod
def list_objects(self, bucket: str, full_output: bool = False) -> Union[dict, list[str]]:
def list_objects(
self, bucket: str, full_output: bool = False, page_size: Optional[int] = None, prefix: Optional[str] = None
) -> Union[dict, list[str]]:
"""Returns some or all (up to 1,000) of the objects in a bucket with each request.
You can use the request parameters as selection criteria to return a subset of the objects in a bucket.
A 200 OK response can contain valid or invalid XML. Make sure to design your application