Skip to content

Commit

Permalink
fix boto3 new version issue
Browse files Browse the repository at this point in the history
  • Loading branch information
liormizr committed Aug 24, 2024
1 parent e644cb2 commit fa0142d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions s3path/accessor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit fa0142d

Please sign in to comment.