diff --git a/s3fs/core.py b/s3fs/core.py index d6eb4e45..2da6f0bd 100644 --- a/s3fs/core.py +++ b/s3fs/core.py @@ -1954,7 +1954,7 @@ async def _bulk_delete(self, pathlist, **kwargs): Must have 0 < len <= 1000 """ if not pathlist: - return + return [] buckets = {self.split_path(path)[0] for path in pathlist} if len(buckets) > 1: raise ValueError("Bulk delete files should refer to only one bucket")