From fa0142daa7c3c0eaae129d6fb588a0d84276fefa Mon Sep 17 00:00:00 2001
From: liormizrahi
Date: Sat, 24 Aug 2024 17:16:29 +0300
Subject: [PATCH] fix boto3 new version issue
---
s3path/accessor.py | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/s3path/accessor.py b/s3path/accessor.py
index e3a598c..fc7f22d 100644
--- a/s3path/accessor.py
+++ b/s3path/accessor.py
@@ -404,8 +404,7 @@ def __iter__(self):
resource, config = configuration_map.get_configuration(self._path)
if not bucket_name:
query = _boto3_method_with_parameters(
- resource.buckets.filter,
- kwargs={'Prefix': str(self._path)},
+ resource.buckets.all,
config=config)
for bucket in query:
yield _S3DirEntry(bucket.name, is_dir=True)