Commits

eikeon  committed 5877ed2

updated base_parts to match name ending in /

  • Participants
  • Parent commits eb0a511

Comments (0)

Files changed (1)

File storages/backends/s3boto.py

         dirlist = self.bucket.list(self._encode_name(name))
         files = []
         dirs = set()
-        base_parts = name.split("/") if name else []
+        base_parts = name.split("/")[:-1]
         for item in dirlist:
             parts = item.name.split("/")
             parts = parts[len(base_parts):]