Skip to content

Commit

Permalink
package-indexer: list nightly/stable separately
Browse files Browse the repository at this point in the history
Signed-off-by: László Várady <laszlo.varady@anno.io>
  • Loading branch information
MrAnno committed Oct 17, 2024
1 parent 2a9d520 commit 94eb9b4
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,13 @@ def _list_remote_files(self) -> List[Dict[str, Any]]:
objects: List[Dict[str, Any]] = []
pagination_options: Dict[str, str] = {}

file_name_prefix = "{}/".format(self.remote_dir.working_dir)

while True:
try:
response: Dict[str, Any] = self.__client.list_objects(
Bucket=self.__bucket,
Prefix=file_name_prefix,
**pagination_options,
)
except (ClientError, EndpointConnectionError) as e:
Expand Down

0 comments on commit 94eb9b4

Please sign in to comment.