Skip to content

Commit 7ccc0a5

Browse files
authored
_bulk_delete must always return a list, even when pathlist is empty (#866)
1 parent 11ec756 commit 7ccc0a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

s3fs/core.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1954,7 +1954,7 @@ async def _bulk_delete(self, pathlist, **kwargs):
19541954
Must have 0 < len <= 1000
19551955
"""
19561956
if not pathlist:
1957-
return
1957+
return []
19581958
buckets = {self.split_path(path)[0] for path in pathlist}
19591959
if len(buckets) > 1:
19601960
raise ValueError("Bulk delete files should refer to only one bucket")

0 commit comments

Comments
 (0)