Skip to content

Commit

Permalink
Merge pull request #345 from MrAnno/fix-nightly-pkg-removal
Browse files Browse the repository at this point in the history
package-indexer: fix nightly removal
  • Loading branch information
alltilla authored Oct 18, 2024
2 parents 2a9d520 + 94eb9b4 commit cc66c5b
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 cc66c5b

Please sign in to comment.