removed a call to _filter_listed_container_objects
@@ -246,10 +246,11 @@ class LocalStorageDriver(StorageDriver):
cpath = self.get_container_cdn_url(container, check=True)
+ fpath = cpath
if prefix:
- cpath = os.path.join(cpath, prefix)
+ fpath = os.path.join(cpath, prefix)
- for folder, subfolders, files in os.walk(cpath, topdown=True):
+ for folder, subfolders, files in os.walk(fpath, topdown=True):
# Remove unwanted subfolders
for subf in IGNORE_FOLDERS:
if subf in subfolders:
@@ -279,8 +280,7 @@ class LocalStorageDriver(StorageDriver):
"""
prefix = self._normalize_prefix_argument(prefix, ex_prefix)
- objects = self._get_objects(container, prefix)
- return self._filter_listed_container_objects(objects, prefix)
+ return self._get_objects(container, prefix)
def get_container(self, container_name):
"""
