Skip to content

Commit

Permalink
fix boto3 new version issue for old s3path versions
Browse files Browse the repository at this point in the history
  • Loading branch information
liormizr committed Aug 24, 2024
1 parent fa0142d commit 568b0ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion s3path/old_versions.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ def __iter__(self) -> Generator[_S3DirEntry, None, None]:
bucket_name = self._path.bucket
resource, _ = self._s3_accessor.configuration_map.get_configuration(self._path)
if not bucket_name:
for bucket in resource.buckets.filter(Prefix=str(self._path)):
for bucket in resource.buckets.all():
yield _S3DirEntry(bucket.name, is_dir=True)
return
bucket = resource.Bucket(bucket_name)
Expand Down

0 comments on commit 568b0ce

Please sign in to comment.