diff --git a/fs_s3fs/_s3fs.py b/fs_s3fs/_s3fs.py index d7f98e2..e64715a 100644 --- a/fs_s3fs/_s3fs.py +++ b/fs_s3fs/_s3fs.py @@ -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): @@ -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)