Skip to content

Commit

Permalink
Fix for issue #68: decode key before list_objects
Browse files Browse the repository at this point in the history
  • Loading branch information
ChinnoDog committed May 31, 2024
1 parent 7f95af6 commit c984045
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fs_s3fs/_s3fs.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
from fs.subfs import SubFS
from fs.path import basename, dirname, forcedir, join, normpath, relpath
from fs.time import datetime_to_epoch
from urllib.parse import unquote


def _make_repr(class_name, *args, **kwargs):
Expand Down Expand Up @@ -719,7 +720,7 @@ def gen_info():
name = _obj["Key"][prefix_len:]
if name:
with s3errors(path):
obj = self.s3.Object(self._bucket_name, _obj["Key"])
obj = self.s3.Object(self._bucket_name, unquote(_obj["Key"]))
info = self._info_from_object(obj, namespaces)
yield Info(info)

Expand Down

0 comments on commit c984045

Please sign in to comment.