S3: Do not attempt to return deleted files in bucket listing
This commit is contained in:
parent
553d074241
commit
4f05aa725c
2 changed files with 16 additions and 0 deletions
|
|
@ -722,6 +722,7 @@ class S3Backend(BaseBackend):
|
|||
else:
|
||||
key_results.add(key)
|
||||
|
||||
key_results = filter(lambda key: not isinstance(key, FakeDeleteMarker), key_results)
|
||||
key_results = sorted(key_results, key=lambda key: key.name)
|
||||
folder_results = [folder_name for folder_name in sorted(
|
||||
folder_results, key=lambda key: key)]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue