Merge pull request #1499 from srikiraju/fix/s3-list-deleted
S3: Do not attempt to return deleted files in bucket listing
This commit is contained in:
commit
0414cc51c1
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