From e98a7d9955dc5ee800aedbc3343c03906809b060 Mon Sep 17 00:00:00 2001 From: Salar Nosrati-Ershad Date: Sat, 11 Nov 2023 15:42:22 +0330 Subject: [PATCH] fix: don't set delimiter if unordered list is enabled --- S3/S3.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/S3/S3.py b/S3/S3.py index ec90a775..8f8e216c 100644 --- a/S3/S3.py +++ b/S3/S3.py @@ -388,7 +388,7 @@ def bucket_list_noparse(self, bucket, prefix = None, recursive = None, uri_param uri_params = {} if prefix: uri_params['prefix'] = prefix - if not self.config.recursive and not recursive: + if not self.config.recursive and not recursive and not self.config.list_allow_unordered: uri_params['delimiter'] = "/" if max_keys != -1: uri_params['max-keys'] = str(max_keys)